In order to create an object follower, is important to see if the quality of the video is good enough.
Settings
Hardware
- Raspberry Pi 3
- 5 Mpx camera
Software
- Raspbian Stretch lite - updated to April 2019
- raspivid
Preparation
After configuring the hardware, prepare the SD card with Raspbian stretch, then :
- login
- run Raspberry configuration tool : sudo raspi-config
- enable camera
- enable SSH
- expand all SD card for image
- logout
- login
- update/upgrade
- sudo apt-get update
- sudo apt-get upgrade
- logout
Tests
The first test is to capture a small video, 10-20 seconds, then copy the video file on a normal computer in roder to be seen.
In order to have some movement, the Raspberry is hooked over an old wire remote controlled toy :
To capture the video is used the program raspivid
To create the video I did start the raspivid program and then moved the robot.
Here an example :
In order to have some movement, the Raspberry is hooked over an old wire remote controlled toy :
To capture the video is used the program raspivid
To create the video I did start the raspivid program and then moved the robot.
Here an example :
Streaming
Here how to do a streaming from the Raspberry toward an Android phone.
Raspberry
From the Raspberry side :
- install VLC
(sudo apt-get install vlc) - run this command :
raspivid -o - -t 99999 -w 640 -h 360 -fps 25|cvlc stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8090}' :demux=h264
PC Side
From the PC side is possible to use VLC or a browser.
From VLC, just go to Media then Open Netwrok Stream and use the URL : http://<raspberry PI IP>:8090
No comments:
Post a Comment