Page 1 of 1

OpenCV -python program-at startup-not working-raspbian

Posted: Thu Sep 14, 2017 3:53 am
by mebin
Hi,
I m working in a project, where i want start a opencv-python program on raspbian startup. The program is such like to open the picamera and do some image processing and display it in full-screen mode. Actually i did it by adding the command "python filename.py" at the end of the file .bashrc.
And set the pi to boot to CLI (command line interface). after rebooting it shows errors

Code: Select all

final:920: Gtk-WARNING**: cannot open display:


How can i fix it?
Please help me.
Thanks in advance

Re: OpenCV -python program-at startup-not working-raspbian

Posted: Thu Sep 14, 2017 1:28 pm
by topguy
OpenCV depends on having a running X-Windows server, so you cant use "boot to CLI".
You need to let the X-server (Desktop) start before you can start your program.