虚拟机中Raspbian系统无法访问Logitech C270 USB摄像头问题求助
虚拟机中Raspbian系统无法访问Logitech C270 USB摄像头问题求助
大家好,我最近碰到个棘手的问题,想请各位帮忙排查下:
我在VirtualBox虚拟机里跑Raspbian系统,想运行从GitHub上拿到的OpenCV代码,但一直弹出错误cannot open camera by Index。我的摄像头是Logitech C270,已经开了VirtualBox的摄像头直通和USB设备映射,用lsusb命令也能看到摄像头设备,但就是没法用它拍照。
我试着用fswebcam做测试,输入命令:
fswebcam test_image.jpg
得到的错误输出是:
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the first.
Adjusting resolution from 384x288 to 352x288.
--- Capturing frame...
Timed out waiting for frame!
No frames captured.
另外我查看了uvcvideo模块的信息,执行modinfo uvcvideo后的输出如下:
modinfo uvcvideo filename: /lib/modules/5.10.0-15-amd64/kernel/drivers/media/usb/uvc/uvcvideo.ko version: 1.1.1 license: GPL description: USB Video Class driver author: Laurent Pinchart <laurent.pinchart@ideasonboard.com> srcversion: E47A6A23F7770184CE233C3 alias: ...
有没有大佬能帮忙看看这到底是哪里出问题了呀?
备注:内容来源于stack exchange,提问作者joshua thomas
相关产品推荐
相关产品推荐

