Using The Imaging Source Video Devices on Linux
来源:互联网 发布:一橙网络投诉电话 编辑:程序博客网 时间:2024/05/17 08:00
对刚买的usb ccd相机在linux下的使用困扰了我很长时间。今天终于解决了。
驱动:uvc
linux版本:ubuntu 7.04
相机型号:THE Imaging Source Europe GmbH DFx 21BU04 Camera
ID 199e:8101
在uvc的官方网站上,我是找到了这个id的支持的。可是我装了几个版本的uvc一直识别不了,偶然的机会在google上看到了这样一段话
Hi Vincent,
I have an Imaging Source DMK21 series USB camera which I recently made to work under Linux, using the 2.6.35 (RC5) kernel. The UVC video module is part of the kernel source in drivers/media/video/uvc/ or you can download the video4linux code.
The main patch is in uvc_driver.c, just add the following block to the uvc_ids[] device array:
/* Imaging Source DFx 21BU04 */
{ .match_flags = USB_DEVICE_ID_MATCH_DEVICE
| USB_DEVICE_ID_MATCH_INT_INFO,
.idVendor = 0x199e,
.idProduct = 0x8101,
.bInterfaceClass = USB_CLASS_VENDOR_SPEC,
.bInterfaceSubClass = 1,
.bInterfaceProtocol = 0,
.driver_info = UVC_QUIRK_PROBE_DEF
}
(Replace the product ID as necessary.)
In uvc_video.c, in the function __uvc_query_ctrl() ensure the type is set like:
__u8 type = USB_TYPE_CLASS | USB_RECIP_INTERFACE;
Good luck!
Thomas
I have an Imaging Source DMK21 series USB camera which I recently made to work under Linux, using the 2.6.35 (RC5) kernel. The UVC video module is part of the kernel source in drivers/media/video/uvc/ or you can download the video4linux code.
The main patch is in uvc_driver.c, just add the following block to the uvc_ids[] device array:
/* Imaging Source DFx 21BU04 */
{ .match_flags = USB_DEVICE_ID_MATCH_DEVICE
| USB_DEVICE_ID_MATCH_INT_INFO,
.idVendor = 0x199e,
.idProduct = 0x8101,
.bInterfaceClass = USB_CLASS_VENDOR_SPEC,
.bInterfaceSubClass = 1,
.bInterfaceProtocol = 0,
.driver_info = UVC_QUIRK_PROBE_DEF
}
(Replace the product ID as necessary.)
In uvc_video.c, in the function __uvc_query_ctrl() ensure the type is set like:
__u8 type = USB_TYPE_CLASS | USB_RECIP_INTERFACE;
Good luck!
Thomas
地址:http://unicap-imaging.org/forums/viewtopic.php?f=6&t=261&p=774&hilit=21BU04#p774
原来在驱动里面添加这个设备号就可以了.我以前尝试着添加过,但是可能中间有几个参数设置的不正确。
再次感慨google真是个好东西....
- Using The Imaging Source Video Devices on Linux
- Example Source Code: Using Face Detection To Create The Illusion Of Real 3D On iOS Devices
- Video Transmit on Linux Using JMF
- Video Players on Windows Mobile devices
- Linux Kernel---some source on the internet.
- How to capture video frames from the camera as images using AV Foundation on iOS
- Linux Digital Video Software Development Kits (DVSDK) for DaVinci Devices
- Grading of Gliomas by Using Radiomic Features on Multiple Magnetic Resonance Imaging (MRI) Sequences
- Best practice: Para-virtualize devices by using the VirtIO API
- Playing Video on the iPhone and iPad
- Linux with HDMI video output on the ZED, ZC702 and ZC706 boards
- Overlay Images on Video Using MPlayer and MEncoder
- Using the mtrace from-source Command
- Video: Making money on the Web the black hat way
- Using opencv to process the video stream from camera
- how to install OpenFetion using source, not deb, on Ubuntu
- Configuring Raw Devices on Red Hat Enterprise Linux 4.0
- Using the Oracle ASM Cluster File System (Oracle ACFS) on Linux
- c# 调用有字符串参数的 DLL
- 用户注册_表单验证
- 链表实现堆栈
- WDK安装调试以及注意事项
- 救命!GNOME"吃"了我的男朋友!
- Using The Imaging Source Video Devices on Linux
- 按钮的禁用与激活
- windows 服务结合 Soctket、邮件发送、短信发送的小应用
- JS表单_checkbox全选
- hell0 hnhhhhhhhh
- js_事件处理_综合演示
- 在配置spring标签是name和id的区别
- JS文本框的事件与方法
- RH4AS 安装yum