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

What is the method of using USB camera for Linux image

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article mainly explains "what is the method of using USB camera in Linux image". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what is the method of using USB camera in Linux image".

1. First, insert the USB camera into the USB interface of the Orange Pi development board.

two。 Then you can see from the lsmod command that the kernel automatically loads the following modules

3. Through the v4l2-ctl (note that the l in v4l2 is the lowercase l, not the number 1), you can see that the device node information of the USB camera is / dev/video0

4. Use fswebcam to test the USB camera

a. Install fswebcam

b. After installing fswebcam, you can use the following command to take pictures

A)-d option specifies the device node of the USB camera

B)-- no-banner is used to remove watermarks from photos

C) the-r option specifies the resolution of the photo

D)-S option is set to skip the previous number of frames

E). / image.jpg is used to set the name and path of the generated photo

c. In the server version of the linux system, after taking a picture, you can use the scp command to upload the taken image to the Ubuntu PC for mirror view (figure 4LMC)

d. In the desktop version of the linux system, you can view the captured pictures directly through the HDMI monitor.

5. Use motion to test the USB camera

a. Install the camera test software motion

b. Modify / etc/default/motion configuration, change start_motion_daemon=no to start_motion_daemon=yes

c. Modify the configuration of / etc/motion/motion.conf

d. Then restart the motion service

e. Before using motion, make sure that the Orange Pi development board can connect to the network properly, and then obtain the IP address of the development board through the ifconfig command.

f. Then enter [IP address: 8081] in the Firefox browser of Ubuntu PC or Windows PC on the same local area network as the development board, and you can see the video output by the camera.

Thank you for your reading. the above is the content of "what is the method of using USB camera in Linux image". After the study of this article, I believe you have a deeper understanding of the method of using USB camera in Linux image, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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

Internet Technology

Wechat

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

12
Report