diff options
| author | st33v <github@f3rr3t.com> | 2017-06-16 18:32:30 +1000 |
|---|---|---|
| committer | st33v <github@f3rr3t.com> | 2017-06-16 18:32:30 +1000 |
| commit | b27933455be13bb1b743d33d9b28ad3aa86a1e9f (patch) | |
| tree | 06843547b15797643995842ec77606a4a85c20ef | |
| parent | 13842061daa5a3594a95e3b4621cc5e410d20032 (diff) | |
Increased darkness threshold for lucerne (an ugly hack)
| -rwxr-xr-x | editpix.sh | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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. |
