How to open two cameras with opencv?
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?
Re: How to open two cameras with opencv?
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?)
Re: How to open two cameras with opencv?
thanks very much!
I move the thread now!