Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV dnn multi stream

Hi,

I'm writting a program to detect object using OpenCV DNN with a pre-trained model like SSD Mobilenet or yolo v4. I want to connect several cameras to my program and do object detection.

I don't know what is the best approach to this problem. Can I have for example 20 threads which get frames from different cameras and each in turn give the frame to a single opencv dnn object to do detection (use queue to store frame to analyse) ? OR Can I instanciate 20 detection objects for each camera and do detection when frame is available. So potentially, I can have 20 detections at the same time.

Thanks