I’ve got a webcam which is working perfectly in vlc, and is available as /dev/video0. However, whenever I use cvCreateCameraCapture, it returns null. I’ve used 0,1,-1 as indexes. What could be causing the problem? I’m on Ubuntu 9.10 BTW, using openCV 2.1.0.1 ppa.
Share
I’m using OpenCV 2.1 on Ubuntu 9.04 and this works fine:
Note that I’m using cvCaptureFromCAM() instead of cvCreateCameraCapture().