Listing available devices in python-opencv
问题 I have two webcams attached to my laptop (one built in), both of which work. (If I use Cheese, a webcam thingy that comes with Ubuntu, it uses the 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) It doesn't work and the object `cap' displays as: <Capture (nil)> Same with CaptureFromCAM. So I'd like to know what openCV is trying to do and why it doesn't seem to know about the second