|
我按照教程安装了ubuntu系统,18.04,16.04都安装过,UVC摄像头(USB免驱摄像头)都打不开,具体是:
插入摄像头后,lsusb有显示设备型号,用cheese,fswebcam,还有opencv下调用VideoCapture video(0); ( 0~10都试过)都打不开摄像头错误信息如下:
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)VideoCapture video("/dev/video0");设置0~10:例如8:
HIGHGUI ERROR: V4L: index 8 is not correct!
应该是uvc的驱动没有编译进来,我尝试自己按照UVC的官网编译uvc驱动也会有错误,大牛们帮忙看一看,感谢!
|
|