diff options
| -rwxr-xr-x | takepix.sh | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -4,14 +4,17 @@ picdir="/home/st33v/pix" picdate=$(date +%Y-%m-%d_%H%M) thispic=$picdir/$picdate.jpg -echo thispic = $thispic +#echo thispic = $thispic -/opt/vc/bin/raspistill -x IFD1.Artist=neatherd -w 1200 -o $thispic +/opt/vc/bin/raspistill -x IFD1.Artist=neatherd -q 70 -md 5 -o $thispic + +# silly portrait shape +#/opt/vc/bin/raspistill -x IFD1.Artist=neatherd -w 1200 -o $thispic # now check to see if the pic is too dark (i.e. taken at night) mean=$(identify -format %[mean] $thispic | sed s/[.].*//) -echo mean is "$mean" +#echo mean is "$mean" # too dark if [ $mean -lt 2000 ]; then |
