RK3399PRO 打不开UVC摄像头
我按照教程安装了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驱动也会有错误,大牛们帮忙看一看,感谢!
页:
[1]