Firefly开源社区

打印 上一主题 下一主题

RK3399PRO 打不开UVC摄像头

11

积分

0

威望

0

贡献

技术小白

积分
11

RK3399PRO 打不开UVC摄像头

发表于 2019-9-23 15:00:38      浏览:7026 | 回复:0        打印      只看该作者   [复制链接] 楼主
我按照教程安装了ubuntu系统,18.04,16.04都安装过,UVC摄像头(USB免驱摄像头)都打不开,具体是:
插入摄像头后,lsusb有显示设备型号,ls /dev/video*多了一个video8和video9,用cheese,fswebcam,还有opencv下调用VideoCapture video(0); ( 0~9都试过)都打不开摄像头错误信息如下:
1,cheese或者fswebcam错误提示:
       firefly@firefly:~$ cheese
Using mplane plugin for capture
Using mplane plugin for capture

(cheese:1400): GStreamer-CRITICAL **: gst_element_message_full: assertion 'GST_IS_ELEMENT (element)' failed
Using mplane plugin for capture
Using mplane plugin for capture

(cheese:1400): GStreamer-CRITICAL **: gst_element_message_full: assertion 'GST_IS_ELEMENT (element)' failed
Using mplane plugin for capture
Using mplane plugin for capture
libv4l2: error setting pixformat: Device or resource busy

(cheese:1400): cheese-WARNING **: Device '/dev/video0' is busy: gstv4l2object.c(3451): gst_v4l2_object_set_format_full (): /GstCameraBin:camerabin/GstWrapperCameraBinSrc:camera_source/GstBin:bin18/GstV4l2Src:v4l2src1:
Call to S_FMT failed for BGR3 @ 640x480: Device or resource busy
2,用opencv打开:
       1)VideoCapture video(0);设置0~1:
       Using mplane plugin for capture
Using mplane plugin for capture
Floating point exception

2)VideoCapture video(0);设置2~9:例如8:
       HIGHGUI ERROR: V4L: index 8 is not correct!
GStreamer Plugin: Embedded video playback halted; module rgaconvert0 reported: Cannot identify device ''.
OpenCV Error: Unspecified error (GStreamer: unable to start pipeline
) in cvCaptureFromCAM_GStreamer, file /home/firefly/opencv-2.4.13/modules/highgui/src/cap_gstreamer.cpp, line 816
terminate called after throwing an instance of 'cv::Exception'
  what():  /home/firefly/opencv-2.4.13/modules/highgui/src/cap_gstreamer.cpp:816: error: (-2) GStreamer: unable to start pipeline
in function cvCaptureFromCAM_GStreamer
Aborted

应该是uvc的驱动没有编译进来,我尝试自己按照UVC的官网编译uvc驱动也会有错误,大牛们帮忙看一看,感谢!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表