diff options
-rw-r--r-- | checkoverwiping.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/checkoverwiping.sh b/checkoverwiping.sh index a1c7d9c..a8bb3b5 100644 --- a/checkoverwiping.sh +++ b/checkoverwiping.sh @@ -11,7 +11,7 @@ find "$1" -maxdepth 1 -type f -name '*_bin0.2.hocr' | sort | while read i; do maxline=0 maxlinename="" - for f in "${n}"*hocr; do + for f in "$1/${n}"*hocr; do line=`awk -F '"' '/ocr_line/ {print $2}' "$f"|sed 's/;.*//g'|awk '{w=$4 - $2; if(w > max){max=w}} END {printf("%d\n", max)}'` b=`basename "$f"` name=`echo "$b" | sed 's/.*_//g;s/.hocr//g'` |