Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 6

Answer by Tõnu Samuel for I have tried to build the example but am getting a NULL when trying to capture the device.Feel free to grab my code here at test for yourself: https://github.com/xamox/OpenCV-CameraThe camera works fine as I'm able to use it with Cheese, Guvcview. I have tested a lot of variations to the cvCaptureFromCAM( CV_CAP_ANY ), as in 0,1,2,-1, etc. I also tried using the VideoCapture function, but doesn't appear to be working.I'm not sure what I need to do to get it working. I've tried building OpenCV 2.3.1 and 2.4.2 from source, everything builds fine, I can import in python, just can't seem to get the webcam to work. I have also tested a few external logitech webcams I have laying around. Any help would be appreciated.

$
0
0
Sounds like your camera device /dev/video0 is inaccessible to non-root users. Try to run with sudo.

Viewing all articles
Browse latest Browse all 6

Trending Articles