Last active
August 29, 2015 14:23
-
-
Save katpadi/2a00de980ede3c78b3b7 to your computer and use it in GitHub Desktop.
timelapse_shooter
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/sh | |
OPTIONS='-hf -vf -o' | |
TS=$(date +%Y-%m-%d_%T) | |
# Take a snapshot | |
raspistill $OPTIONS "$TS".jpg | |
# For now this is the filename | |
file="$TS.jpg" | |
mv $file raw/$file | |
cd raw | |
echo 'Putting timestamp...' | |
# Put timestamp on image (imagemagick) | |
convert $file -gravity NorthEast -pointsize 70 -fill white -stroke black \ | |
-annotate +100+100 %[exif:DateTimeOriginal] \ | |
-gravity SouthWest \ | |
-pointsize 40 -stroke gray -annotate +100+100 'by @katpadi using RPi NoIR Cam' \ | |
"annotated-${file}" | |
# Move to new dir | |
mv "annotated-${file}" "../annotated/${file}" | |
echo "Done..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment