How to use the webcam
-
Hi everyone.
I'd like to use the webcam on my embedded board, so I found the QT example like this https://github.com/hajilisamir/webCam.
I am sure my webcam work my embedded board because I run "gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! waylandsink" command and I can see the results of webcam.
The QT app can work on my ubuntu, but it doesn't work my my embedded.
In my embedded board, it just show black frame.Do you have any ideas?
Thanks -
Hi and welcome to devnet,
Which version of Qt are you using ?
How did you install it ?
On which distribution ? -
@SGaist
Hi SGaist,Thank you.
I'm using Qt version 5.6.3.
I have a SDK and it can build QT application.
How to create the SDK. I refer https://embeddeduse.com/2020/06/19/qt-embedded-systems-2-build-qt-sdk-with-yocto/I tried it on my board, but I got
When I execute this example QT application, I can see my webcam. it works.
Thanks
-
I might be wrong but I think 5.6.3 was still using gstreamer 0.1.
Note that this version is really outdated, can you update to a more recent LTS version ? Current is 5.15.