range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn
70
www.xunlong.tv
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
b) --no-banner is used to remove the watermark of photos
c) -r option is used to specify the resolution of the photo
d) ./image.jpg is used to set the name and path of the generated photo
root@orangepir1plus:~# fswebcam -d /dev/video0 --no-banner -r 1280x720 -S
5 ./image.jpg
c. In the server version of the Linux OS, after taking the picture, you can use the
scp command to transfer the picture to the Ubuntu PC for image and viewing
root@orangepir1plus:~# scp image.jpg test@192.168.1.55:/home/test (Modify the IP
address and path according to the actual situation)
5) Use motion to test the USB camera
a. Install the camera test software motion
root@orangepir1plus:~# apt update
root@orangepir1plus:~# apt install motion
b. Modify the configuration of /etc/default/motion, modify
start_motion_daemon=no to start_motion_daemon=yes
root@orangepir1plus:~# sed -i
"s/start_motion_daemon=no/start_motion_daemon=yes/" \
/etc/default/motion (This is a command)
c. Modify/etc/motion/motion.conf configuration
root@orangepir1plus:~# sed -i "s/stream_localhost on/stream_localhost off/" \
/etc/motion/motion.conf (This is a command)
d. Then restart the motion service
root@orangepir1plus:~# /etc/init.d/motion restart
[ ok ] Restarting motion (via systemctl): motion.service.
e. Please make sure that the Orange Pi development board can connect to the
network normally before using motion, and then obtain the IP address of the
development board through the ifconfig command
f. Then enter the [IP address of the development board: 8081] in the Ubuntu PC or
Windows PC on the same LAN as the development board or the Firefox browser
of the mobile phone to see the video output by the camera.