changed cron/blackcheck.py to submodule

This commit is contained in:
Felix Buehler 2017-04-20 22:40:15 +02:00
parent 50c687af66
commit 5c9c631024
4 changed files with 6 additions and 42 deletions

View file

@ -7,7 +7,7 @@ basename=$(dirname $(readlink -f $0))
mkdir -p $path
streamer -q -f jpeg -s $size -o $path/$now.jpeg -r 1
grey="$(python3 $basename/blackcheck.py -i $path/$now.jpeg -d 10)"
grey="$($basename/blackcheck/blackcheck.py -i $path/$now.jpeg -d 10)"
if [ "$grey" = "True" ] ; then
mv $path/$now.jpeg $path/black/$now.jpeg
fi