Unsolved Best approach to process frames in) a Queue (producer) and consuming from a thread pool ? (consumer
-
Hi,
I am receiving the video feeds at almost 100fps and want to process them through a producer/consumer way.
What is the best way to put the frames a Queue and consumed by the given number of threads?
There will be a thread that preprocess the frames as received and put them a Queue and there will be the watcher threads that consuming them.
-
does it help??https://doc.qt.io/qt-5/qtconcurrent-index.html
-
There's a rather complete example in Qt's documentation.
https://doc.qt.io/qt-5/qtcore-threads-waitconditions-example.html -
Hi,
In addition to my fellows suggestions:
- How many feeds are we talking about ?
- What are their formats ?
- What are their size ?
- Where are they coming from ?
- What processing do you want to apply ?
- What version of Qt ?
- What OS ?
-
- there is 4 feeds
- format is h264 rtsp / mp4
- size is 1080p
- coming from live camera through Gbit switch
- detect object (ie : face)
- Qt 5.12.2
- Ubuntu 18.04
-
What SDK/library are you using to get the data from your camera to your application ?
-
I am using Opencv 3.4 VideoCapture
-
Also for all the image processing ?
Are you using Qt only for displaying the final result ?