EasyManua.ls Logo

Orange Pi Zero2 - Page 47

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...
46
b) --no-banner is used to remove watermark from photos
c) -r option is used to specify the resolution of the photo
d) -S option is used to skip the previous frame number
e) ./image.jpg is used to set the name and path of the generated photo
root@orangepi:~# 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@orangepi:~# scp image.jpg test@192.168.1.55:/home/test Modify the IP
address and path according to the actual situation
d. desktop version of Linux OS, you can directly view the captured pictures
through the HDMI display
5) Use motion to test the USB camera
a. Install the camera test software motion
root@orangepi:~# apt update
root@orangepi:~# apt install motion
b. Modify the configuration of /etc/default/motion, change
start_motion_daemon=no to start_motion_daemon=yes
root@orangepi:~# sed -i
"s/start_motion_daemon=no/start_motion_daemon=yes/" \
/etc/default/motion (This is a command)
c. Modify the configuration of /etc/motion/motion.conf
root@orangepi:~# sed -i "s/stream_localhost on/stream_localhost off/" \
/etc/motion/motion.conf (This is a command)
d. Then restart the motion service
root@orangepi:~# /etc/init.d/motion restart
[ ok ] Restarting motion (via systemctl): motion.service.
e. Before using motion, please make sure that the Orange Pi development board
can connect to the network normally, 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

Table of Contents

Related product manuals