让我们选择大多数笔记本电脑上都有的 uvcvideo 模块: lsmod | grep uvc uvcvideo 126976 0 videobuf2_vmalloc 20480 1 uvcvideo uvc 16384 1 uvcvideo videobuf2_v4l2 36864 1 uvcvideo videodev _v4l2,uvcvideo,videobuf2_common 可以看到 lsmod 显示了 uvcvideo 和它依赖的模块,以及有多少模块在使用它们。 videobuf2_v4l2 36864 1 uvcvideo, Live 0x0000000000000000 videodev 315392 2 uvcvideo,videobuf2_v4l2 videobuf2_v4l2 36864 1 uvcvideo, Live 0xffffffffc0a28000 videodev 315392 2 uvcvideo,videobuf2_v4l2
: Found UVC 1.00 device <unnamed> (046d:0825) Jul 22 13:55:43 lowfree02 kernel: [19028.726084] uvcvideo Jul 22 13:55:43 lowfree02 kernel: [19028.726088] uvcvideo 3-5:1.0: Entity type for entity Extension 6 Jul 22 13:55:43 lowfree02 kernel: [19028.726091] uvcvideo 3-5:1.0: Entity type for entity Extension 7 Jul 22 13:55:43 lowfree02 kernel: [19028.726094] uvcvideo 3-5:1.0: Entity type for entity Processing Jul 22 13:55:43 lowfree02 kernel: [19028.726096] uvcvideo 3-5:1.0: Entity type for entity Extension 3
lopencv_cudaobjdetect -lopencv_cudawarping -lopencv_cudaimgproc 4 运行结果 video dev : /dev/video0 Driver Name:uvcvideo
usb-usb-0_1_1_3_1_0 ID_REVISION: '0216' ID_SERIAL: SYX-230216-J_HD_Camera ID_TYPE: video ID_USB_DRIVER: uvcvideo
driver: uvcvideo card: USB2.0 PC CAMERA bus_info: usb-nuc970-ehci-2 version:
[tvd] __tvd_probe_init:3321 __tvd_probe_init:tvd1 is not used by sysconfig. uvcvideo: Unable to create debugfs directory usbcore: registered new interface driver uvcvideo USB Video Class driver (1.1.1) gspca_main [tvd] __tvd_probe_init:3321 __tvd_probe_init:tvd1 is not used by sysconfig. uvcvideo: Unable to create debugfs directory usbcore: registered new interface driver uvcvideo USB Video Class driver (1.1.1) gspca_main
并且机器的USB接口通过OTG线连接上USB摄像头 #include <fcntl.h> #include <sys/ioctl.h> #include "usb_test.h" #include "uvcvideo.h
rtc core: registered pl031 as rtc0 i2c /dev entries driver usbcore: registered new interface driver uvcvideo
rtc core: registered pl031 as rtc0 i2c /dev entries driver usbcore: registered new interface driver uvcvideo
2.535702] IR XMP protocol handler initialized [ 2.541559] usbcore: registered new interface driver uvcvideo
4100000.udc-controller: failed to start g1: -19 [ 9.887270] usbcore: registered new interface driver uvcvideo 4100000.udc-controller: failed to start g1: -19 [ 9.887270] usbcore: registered new interface driver uvcvideo
detected [ 1.982335] i2c /dev entries driver [ 1.989066] usbcore: registered new interface driver uvcvideo
detected [ 1.982335] i2c /dev entries driver [ 1.989066] usbcore: registered new interface driver uvcvideo
S3C CMM Driver, (c) 2008 Samsung Electronics usbcore: registered new interface driver uvcvideo USB Video
install uvcvideo /bin/false 这会禁用网络摄像头,以防止其被用来监视您。 您也可以将麦克风模块列入黑名单,但这在系统之间可能会有所不同。
install uvcvideo /bin/false 这会禁用网络摄像头,以防止其被用来监视您。 您也可以将麦克风模块列入黑名单,但这在系统之间可能会有所不同。
install uvcvideo /bin/false 这会禁用网络摄像头,以防止其被用来监视您。 您也可以将麦克风模块列入黑名单,但这在系统之间可能会有所不同。
7.31) [ 12.103643] file system registered [ 12.269745] usbcore: registered new interface driver uvcvideo
9.367332] fuse: init (API version 7.31) [ 9.652921] usbcore: registered new interface driver uvcvideo