USB camera installed under Linux system

Source: Internet
Author: User


Recently in the study of the camera, it is natural to think of playing under the Linux use. After all, open source software under Linux is still much more.

The Linux distribution is: Ubuntu. Run on the virtual machine.

By: Uname-a View System Information:

Linux lzj-virtual-machine 3.13.0-45-generic #74-ubuntu SMP Tue Jan 19:36:28 UTC x86_64 x86_64 x86_64 gnu/linux

The first step is to plug in the USB camera.

The second step is to find the USB information via the LSUSB command. As shown in the device:

Bus 001 Device 002:id e000:e000  bus 001 device 001:id 1d6b:0002 Linux Foundation 2.0 root hubbus 002 Device 003:id 0E0F:0002 VMware, Inc. virtual USB hubbus 002 device 002:id 0e0f:0003 VMware, Inc. virtual Mousebus 002 Device 001:id 1d 6b:0001 Linux Foundation 1.1 root Hub

Where: ID e000:e000 is the camera.

The third step is to find out if there is a camera device in the device directory. As shown below:

[Email protected]:/dev# ls | grep videovideo0

Fourth step, see if the system can recognize the camera. As shown below:

[Email protected]:/dev# DMESG | grep cam[  530.257942] USB 1-1: Product:litearray USB2.0 5M camera[  530.351669] uvcvideo:found UVC 1.00 device Li Tearray USB2.0 5M Camera (e000:e000) [  530.364756] input:litearray USB2.0 5M camera as/devices/pci0000:00/0000:00:11 .0/0000:02:03.0/usb1/1-1/1-1:1.0/input/input6

Fifth step, turn on the camera.

[Email protected]:/dev# luvcview-d/dev/video0-f yuvluvcview 0.2.6SDL information:  Video driver:x11  A window ma Nager is Availabledevice information:  Device path:  /dev/video0stream settings:  Frame format:yuyv  Frame size:   640x480  frame rate:   fps

In theory, the image can be seen here, but unfortunately, the image has not yet been seen.

The reason for the virtual machine running on the Win7 operating system is estimated. Need to go through a validation.

USB camera installed under Linux system

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.