X-Git-Url: https://git.ucc.asn.au/?p=dja%2Fscandal.git;a=blobdiff_plain;f=detect2pages.sh;h=540b08b914cd00e67ba2ebede9a257150ec61af0;hp=4b8c18991e35178e338c82e4f97686b2b4d21516;hb=cc9cb1c3bc1e5b3bd64ec75f9d2f6fc01e00b2db;hpb=13a56d0f2178dd64270ae0b9d6e2994de42e9c07;ds=sidebyside diff --git a/detect2pages.sh b/detect2pages.sh index 4b8c189..540b08b 100755 --- a/detect2pages.sh +++ b/detect2pages.sh @@ -2,6 +2,7 @@ #should probably have given up on shell and gone over to python. +source $(dirname $0)/my_seq.sh infile=$1 pg=$2 @@ -12,7 +13,7 @@ dir=$(dirname $infile) convert -blur 10 -gamma 0.00001 -median 1 $infile -resize 1x601\! -gamma 0.3 $dir/strip-${pg}-${subpg}.png #There seems to be a definte bias in my reader scans for things to be in the top part rather than the bottom part -testpoints=`jot - 270 320` +testpoints=`$my_seq 270 320` sum=0 prev=0