I have two webcams attached to my laptop (one built-in), both of which work. (If I use cheese, the webcam that comes with Ubuntu, it uses an external one). If i use
cap = cv.CreateCameraCapture(0)
or
cap = cv.CreateCameraCapture(-1)
I get my built-in webcam. If i use
cap = cv.CreateCameraCapture(1)
This does not work, and the `cap 'object is displayed as:
<Capture (nil)>
Same thing with CaptureFromCAM. So I would like to know what openCV does and why it does not know about the second camera. Two devices must be available (there are / dev / videoN entries for both).
source share