range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 59 www.xunlong.tv
4) Install fswebcam
root@orangepi:~# apt update
root@orangepi:~# apt-get install fswebcam
5) After installing fswebcam, you can use the following command to take pictures
a. The -d option is used to specify the device node of the USB camera
b. --no-banner is used to remove watermark from photos
c. The -r option is used to specify the resolution of the photo
d. -S option is used to skip the previous frame number
root@orangepi:~# fswebcam -d /dev/video2 --no-banner -r 1280x720 -S 5 ./image.jpg
6) In the server version of the Linux system, you can use the scp command to transfer the
taken pictures to the image of Ubuntu PC after taking pictures.
root@orangepi:~# scp image.jpg test@192.168.1.55:/home/test // Need to be modified
to the corresponding path
7) In the desktop version of the linux system, you can directly view the captured pictures
through the HDMI display
3.17. Audio test
3.17.1. Headphone jack play audio test
1) Through the aplay -l command, you can view the sound card devices supported by
the system, where card 0 is the sound card device of the headset
root@orangepi:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Codec [H3 Audio Codec], device 0: CDC PCM Codec-0 [CDC PCM Codec-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: allwinnerhdmi [allwinner-hdmi], device 0: 1c22800.i2s-i2s-hifi i2s-hifi-0
[1c22800.i2s-i2s-hifi i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
2) Upload the audio file that needs to be played to the /root folder of the Linux system.
You can use the scp command to upload in the Ubuntu PC. The IP address in the