ubuntu9.10 using USB Camera

Source: Internet
Author: User

Before porting applications to arm Linux, we used to test the USB camera on Ubuntu 9.10 on the PC Linux test, laying the groundwork for porting to arm Linux.

1. View the camera chip type

A. Insert a USB camera

B.LSUSB command to view devices on the USB bus

Author of: Bus 003 Device 001:id 1 d6b:0001 Linux Foundation 1.1 root Hub
Bus 005 Device 001:id 1 d6b:0001 Linux Foundation 1.1 root Hub
Bus 001 Device 003:id 1 cac:3338 kinstone
Bus 001 Device 001:id 1 d6b:0002 Linux Foundation 2.0 root Hub
Bus 004 Device 001:id 1 d6b:0001 Linux Foundation 1.1 root Hub
Bus 002 Device 001:id 1 d6b:0001 Linux Foundation 1.1 root Hub

See the bus 001 Device 003:id 1cac:3338 kinstone Line, is the information of the USB camera

At address http://linux-uvc.berlios.de/you can see whether the driver below will support the current USB camera

2. Compile and install USB camera driver Uvcvideo

The address Http://openfacts.berlios.de/index-en.phtml?title=Linux_UVC&action=edit explains the relevant source download,

The address Http://openfacts.berlios.de/index-en.phtml?title=HowTo_compile_for_Ubuntu_6.06_LTS illustrates the related compilation method,

The method is:

The current directory make can be generated. KO module, cross-compile simple modify makefile, note that the Development Board INSMOD requires kernel compilation options V4L support

3. Test camera

Tool Luvcview, used to test the camera, looks like this tool is based on X11, so the development Board can not use it to test, the following is the method on the PC

Directly in directory make, the current directory to generate the Luvcview tool, the following command to test:

./luvcview-d/dev/video0-f yuv-s 640x480, you can

On top of this, Ubuntu 910 USB Camera test completed. The next step is to migrate to the Development Board.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.