Page 1 of 1

USB Camera display in GUI

Posted: Tue Apr 17, 2018 8:17 pm
by maxmustermann
Hello everyone,

I have very little experience with raspberry programming, so I beg your mercy ;)

I want to build a very simple GUI that - apart from some buttons - shows the live image from the USB webcam connected directly to the Raspberry. The GUI is displayed on a 7" touchscreen also connected to the raspberry. I do not need to record the video or stream it online, I just want to get the live video from the camera onto my screen.

1. Which GUI 'framework' ┬┤should I use? Tkinter, Glade, ... ?

2. Lets say I have the camera connected as /dev/video0. How do I get the video data from there to my GUI?

3. I saw some tutorials using openCV, which looked very complex and painful for a beginner. Is there an easy way I do not see that works without openCV?

4. (probably the easiest question) Without using my own GUI, which program can I use to get a live, high-fps, fullscreen preview of my USB camera video?


Any help is appreciated!

BW

Re: USB Camera display in GUI

Posted: Tue Apr 17, 2018 9:03 pm
by topguy
There are a few programs that can be used to test.
- fswebcam
- camorama
- cheese
- guvcview
- webcamoid

I dont know if all are available on Raspbian.

"webcamoid" is more than a bit interesting since its based on a library called "libqb6" and also written for Qt.
Using Qt5 and OpenGL combined with the experimental opengl driver for the Pi it might be possible to have something both fullscreen and high fps.