PDA

View Full Version : How to open two cameras with opencv?



alphaboy
21st December 2007, 10:34
Dear friends,

Hello everyone!

I make a program by QT,I use openCv to operate a camera,But I need to open two Cameras,I find it can't work!

What should to do to open two cameras by using opencv?


mp_capture = (CvCapture *)cvCaptureFromCAM(0);
? mp_capture = (CvCapture *)cvCaptureFromCAM(1);

Can you help me?

high_flyer
21st December 2007, 10:42
If its a USB camera, it is most likely its not possible, since most camera USB drivers don't manage instances of multiple devices.
There are few I think that are able to do that, so you have to make sure the driver supports it.


(To mods: shouldn't this be moved to General Programming?)

alphaboy
21st December 2007, 10:58
thanks very much!

I move the thread now!