From b27933455be13bb1b743d33d9b28ad3aa86a1e9f Mon Sep 17 00:00:00 2001 From: st33v Date: Fri, 16 Jun 2017 18:32:30 +1000 Subject: Increased darkness threshold for lucerne (an ugly hack) --- editpix.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'editpix.sh') diff --git a/editpix.sh b/editpix.sh index fa7491e..83caf68 100755 --- a/editpix.sh +++ b/editpix.sh @@ -32,7 +32,10 @@ do # Check to see if the pic is too dark (i.e. taken at night) mean=$(identify -format %[mean] ${newpic} | sed s/[.].*//) # echo "mean is $mean" - # too dark (nighttime) + if [ "${campi}" -eq "lucerne" ] ; then + threshold=6000 # shocking hack to compensate for new cam type + fi + # Test to see if it is too dark (nighttime) if [[ "${mean}" -lt "${threshold}" ]] ; then rm $newpic # echo mean of $mean is too low. It is nighttime. -- cgit v1.3