uvc cam not detected

asked 2012-11-30 04:53:44 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

Hi, i bought logitech webcam c210 (uvc driver). am using this code http://opencv.willowgarage.com/wiki/CameraCapture to communicate with my camera.

but always i got this error. ERROR: capture is NULL..

the opencv can support UVC camera's or not. if support what is the problem..

Best Regards Jagan R

edit retag flag offensive close merge delete

Comments

Try changing cvCaptureFromCAM(CV_CAP_ANY) to cvCaptureFromCAM(1) or some other integer. CV_CAP_ANY will try to open /dev/video0, which might not be your camera. Check /dev/ to see what video devices you have.

j. gravatar imagej. ( 2012-11-30 18:04:12 -0500 )edit

i have tried this command cvCaptureFromCAM(1), but its, not working. i can see my webcam in /dev/ by using this command ls /dev/vi*, then i get /dev/video0 . tried lsusb, it display : Bus 001 Device 002: ID 046d:0819 Logitech, Inc. Webcam C210. problem in opencv or camera, i reinstalled opencv and successfully compiled the samples without error..

rjagan gravatar imagerjagan ( 2012-11-30 22:44:50 -0500 )edit