Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Raspberry pi Camera V2 using Qt
pVit last edited by
I have already read a lot of topics about this but I still don't have solution so I'm asking here.
What is the easiest way to use Raspberry Pi camera V2 in Qt Creator on RPi?
I read about raspicam, but I don't know how to use. I downloaded source code from git but It needs a lot of added Android headers to download and they are useless for me, because I work on RPi. After downloading all headers it shows a lot of errors.
Class QCamera is not working here.
One way I know is write easy python codes and call them from Qt but I'm not fan of counts of QProcess.
Do you have any idea?
At all, I need to do:
- capture picture
- capture video
- stream video
Thanks for your help
AFAIK, QtGstreamer is your best bet of these actives.
Yurii Chernyshov last edited by
Based on https://wiki.qt.io/RaspberryPi2EGLFS#Qt_Multimedia
Unfortunately the GStreamer-based multimedia stuff is not quite usable at the time of writing - accelerated video works only sometimes (and with glitches), while the camera is just broken.
I am a bit upset because of this and trying to find different way to get Camera stream on raspberry pi.
Here is nice source:
but it is impossible to have it cross-compiled because this library depends on raspberry pi specific packages. However, it runs fine when building and compiling on raspberry pi board directly.
LuGRU last edited by
It will allow to capture web cam and store / view / stream camera feed (actually it will allow to access any video / audio file on device including web cam).