EasyManua.ls Logo

Orange Pi Zero2 - USB Camera Test

Orange Pi Zero2
88 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
45
8 1 30043119 sda1
3) Use the mount command to mount the U disk to /mnt, and then you can view the
files in the U disk
root@orangepi:~# mount /dev/sda1 /mnt/
root@orangepi:~# ls /mnt/
test.txt
4) After mounting, you can view the capacity usage and mount point of the U disk
through the df -h command
root@orangepi:~# df -h | grep "sd"
/dev/sda1 29G 208K 29G 1% /mnt
3.16. USB camera test
1) First insert the USB camera into the USB port of the Orange Pi development board
2) Then through the lsmod command, you can see that the kernel has automatically
loaded the following modules
root@orangepi:~# lsmod
Module Size Used by
uvcvideo 106496 0
videobuf2_vmalloc 16384 1 uvcvideo
videobuf2_memops 16384 1 videobuf2_vmalloc
videobuf2_v4l2 32768 1 uvcvideo
videobuf2_core 53248 2 uvcvideo,videobuf2_v4l2
3) Through the v4l2-ctl (note that l in v4l2 is a lowercase letter l, not a number 1)
command, you can see that the device node information of the USB camera is
/dev/video0
root@orangepi:~# apt update
root@orangepi:~# apt install v4l-utils
root@orangepi:~# v4l2-ctl --list-devices
USB 2.0 Camera (usb-sunxi-ehci-1):
/dev/video0
4) Use fswebcam to test the USB camera
a. Install fswebcam
root@orangepi:~# apt update
root@orangepi:~# apt-get install fswebcam
b. After installing fswebcam, you can use the following command to take
pictures
a) -d option is used to specify the device node of the USB camera

Table of Contents

Related product manuals