What's the best way to process frames from QCamera with OpenCV?
-
Hello,
I want to use QCamera along with other objects from Qt Multimedia module, but I have stumbled upon a major problem. My first idea to create this project was to use QAbstractVideoFilter, because it seemed to suit my application perfectly. Unfortunately this only works with QML, and I wasn't planning on using QML in my project. Another solution would be to use QVideoProbe, from the description it seemed like it could work, but unfortunately I quickly learned that it got removed in Qt 6. Is there anything else I could use to process video frames from QCamera with OpenCV? I don't want to use OpenCV alone for this task, it lacks some functionality that is provided by Qt Multimedia module. -
Hi and welcome to devnet,
The Qt 6 multimedia pipeline might better fit your needs. You should check it.
By the way, what is missing from OpenCV ?
-
Thank you for your quick response. Do you know which objects or functions from the multimedia pipeline would suit me the best? I tried to look for something in the Qt documentation but I couldn't really find anything.
The thing I miss the most in OpenCV is the ability to list capture devices, also the QCamera is just integrated so much nicer to the framework, it's very easy to get basic things done.
-
QVideoSink seems to be what you are looking for.