Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use camera on Linux operating system

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article focuses on "how to use the camera on the Linux operating system", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to use a camera on the Linux operating system.

Run lsusb

Find Bus 001 Device 003: ID 0c45:62c0 Microdia

Found above (command lsusb-d 0c45:62c0-v is also available) the original manufacturer is Sonix (try to find the driver from this station, find the highest model only sn9c201 without sn9c211, not to mention for linux)

Fortunately, the website above guides http://linux-uvc.berlios.de/ 's support for this model. There is no release content above, so you can only ask svn to check out the source code (there is a packaged version in the URL below).

Fortunately, gentoo's portage has it, so emerge linux-uvc. Got it.

Question 1, how to use it?

The post-modprobe uvcvideo / dev/video0 is (my uvc does not support read I yuv o, maybe the version or hardware problems are not available without further study), download luvcview from http://mxhaard.free.fr/download.html, then decompress, make and then. / luvcview-d / dev/video0-f yuv-s 640x480 will see it.

Question 2, what should I do without linux-uvc (there is no driver for a certain distribution)?

Download uvcvideo-r*.tar.gz from the above address, and then decompress, make, make install

Or load the module manually after make (I just don't make install on purpose):

Loading: insmod uvcvideo.ko file address

Uninstall: rmmod uvcvideo

For example, my script:

#! / bin/bash

Insmod. / uvcvideo-r104/trunk/uvcvideo.ko

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

Rmmod uvcvideo

At this point, I believe you have a deeper understanding of "how to use the camera on the Linux operating system". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report