I'm trying to write a simple python script to capture an image from a webcam using OpenCV. This is running on Ubuntu 11.10 32-bit.
when I run lsusb in the terminal i get:
Bus 002 Device 002: ID 045e:00f7 Microsoft Corp. LifeCam VX-1000
Which leads me to believe that the driver for the camera is installed
In a python shell I type: capture=cv.CaptureFromCAM(0) # also tried -1, 1, 2, 3
but capture is always null.
I also tried: capture = cv.CreateCameraCapture(0)
But i get the same results.
Would appreciate any help
Cheers,