OpenCV not detecting webcam on BeagleBone Black
I have a Logitech C250 webcam attached to a BeagleBone Black. I can capture video just fine with other applications and the light on the camera activates, however OpenCV refuses to open the camera, and no light comes on. the exact same code works with the same camera on my laptop.
[root@alarm maav-software]# lsusb
Bus 001 Device 003: ID 046d:0804 Logitech, Inc. Webcam C250
[root@alarm ~]# ls /dev/video0
/dev/video0
[root@alarm ~]# dmesg |grep video
[ 0.175444] Linux video capture interface: v2.00
[ 4.601817] uvcvideo 1-1:1.0: usb_probe_interface
[ 4.601847] uvcvideo 1-1:1.0: usb_probe_interface - got id
[ 4.634004] uvcvideo: Found UVC 1.00 device <unnamed> (046d:0804)
[ 4.706079] usbcore: registered new interface driver uvcvideo
[ 6.113208] uvcvideo 1-1:1.0: usb_probe_interface
[ 6.113225] uvcvideo 1-1:1.0: usb_probe_interface - got id
[ 6.113318] uvcvideo: Found UVC 1.00 device <unnamed> (046d:0804)
[ 3526.724850] uvcvideo 1-1:1.0: usb_probe_interface
[ 3526.724868] uvcvideo 1-1:1.0: usb_probe_interface - got id
[ 3526.725146] uvcvideo: Found UVC 1.00 device <unnamed> (046d:0804)
As you can see, the camera seems to attach ok, and as I said, it works in other applications.
Any ideas as to what might cause this?
Comments
- Is Video4Linux (V4L/V4L2) installed on the BBB?
- Is the opencv distribution on BBB built WITH_V4L / WITH_V4L2 flags?