树莓派上可以找到摄像头驱动,但是在树莓派终端输入raspistill -o image.jpg,输出如下错误:
mmal: Cannot read camera info, keeping the defaults for OV5647
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
mmal: Failed to create camera component
mmal: main: Failed to create camera component
mmal: Camera is not detected. Please check carefully the camera module is installed correctly
其原因为使用的摄像头为USB摄像头,而raspistill命令只能用于CSI摄像头。对于USB接口的摄像头,可以通过调用fswebcam进行访问。
在树莓派终端输入sudo apt-get install fswebcam安装fswebcam。通过输入sudo fswebcam image.jpg进行拍照测试。使用方法可以通过输入fswebcam -h查询。
当尝试在树莓派上使用raspistill命令拍照时,出现错误提示,表明该命令不适用于USB摄像头。为解决此问题,可以安装fswebcam软件来访问USB摄像头。通过`sudo apt-get install fswebcam`安装后,使用`sudofswebcam image.jpg`进行拍照测试。fswebcam是适用于树莓派USB摄像头的替代工具,其使用方法可通过输入`fswebcam -h`查询。
1381

被折叠的 条评论
为什么被折叠?



