I\'m trying to create 3 real-time capture frames with webcams into a USB hub into my laptop. Using the \"camera\" app on Windows, I can change the camera source one at a time an
First,we have to test your webcam can or cannot be connect to OPENCV.
connect only one webcam,and run your program with cv2.VideoCapture(0)
.Parameter 0 mean there is a single camera connected.
if all your webcam is ok,then it will be problem of index,there is some code which will find the deviceID assigned to the cam.
and if some webcam unfortunately fail,then it will be hard.
In this case you have to create your own function that grabs using the SDK and write the image into a cv::Mat.