1 | initial version |
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
NO. networks cannot be shared between threads
2 | No.2 Revision |
I want to connect several cameras to my program and do object detection.
you'll soon find out the limits for this, as an usb2 hub can handle more than 1 camera only if you reduce the resolution (you'll need special hardware to handle 20 cams)
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
NO. networks cannot be shared between threadsthreads.
but you could collect your frames from different threads in a queue and send "batches" of images into the dnn
OR Can I instanciate 20 detection objects for each camera
means 20 times the resources (memory / GPU / CPU) this quickly goes through the roof ;(