-
-
Save ArtBIT/b4e6a847c53a6b7139b8ba297caf72c3 to your computer and use it in GitHub Desktop.
RPI9000 Webcam Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IMAGE=/tmp/webcam.jpg | |
# Save the webcam image to a file | |
fswebcam \ | |
-d /dev/video0 \ | |
-p YUYV \ | |
-r 1600x1200 \ | |
--jpeg 85 \ | |
-F 4 \ | |
--set Gamma=4 \ | |
--no-banner \ | |
--overlay $HOME/hal9000.png \ | |
$IMAGE | |
# copy it to my host computer | |
scp $IMAGE $HOST_IP:/home/artbit/rpi/$(date +\%Y\%m\%d\%H\%M).jpeg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment