[SOLVED] Multiple USB camera on a hub question
I am using a powered USB 2.0 hub and I am having problems accessing more than one camera through the hub in my python script.
I don't need simultaneous video feed from each camera. I just need to cycle through each to grab a snapshot.
example:
Activate Cam0
Take picture from Cam0
Disable Cam0
Activate Cam1
Take Picture from Cam1
Disable Cam1
etc.
Do you know how I can fully disconnect from Cam0 so I can access Cam1? Even though I do a release() on Cam0 and Cam1.isOpened() returns true, I get a "can't grab frame. Error: -2147483638" when I try to read() from Cam1.
Thanks in advance.
In general, accessing multiple USB camera's at the exact same moment, through a single USB hub is a bad habbit. There will always be a delay ... You could try 2 seperate physical busses on your system, which works a bit better, but actually what you need are multiple camera's that are interconnected by a hardware trigger. Thats the only robust solution to get 100% identical moment captures.