2 USB cameras not working with opencv

I am working on a computer vision project and I need to use two cameras using the opencv library. I tried this code, but with two webcams from the USB port it does not work while it works, if I use one USB camera and the camera of my computer.

CvCapture* capture[2]; capture[0] = cvCreateCameraCapture(0); capture[1] = cvCreateCameraCapture(1); if(!capture[0] && !capture[1]) printf("Webcam error\n"); 

I am working on windows 7 on an acer aspire 5742g. Is this a bus problem for my computer? Cameras - 2 Philips SPZ2000. I also tried to work with photographs taken by one of them, and from the camera on my computer, and when I use the calibration and correction code found in Bradskyโ€™s study of opencv, I get a bad result. Can someone help me? Thanks in advance,

Sarah

+4
source share
1 answer

A typical reason that 2 + USB cameras do not work together (they can still work normally separately) is that the USB bandwidth is insufficient to run both of them simultaneously. The bandwidth limit is rather small: The maximum throughput of an isochronous tube (which is usually used for video) is 24 MB / s .

More on this issue:

+7
source

All Articles