summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-06-11 18:25:56 +0100
committerNick White <git@njw.name>2019-06-11 18:25:56 +0100
commit0ea7b7f8c536d3b99831b689c846d8a1b64440ec (patch)
tree588969cb734448d9a9eccc5a6ab412e9eb4a0faf
parent79f89cfc67b4bf07885d89403a6905d903394d9b (diff)
Fix bug in checkoverwiping script
-rw-r--r--checkoverwiping.sh2
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'`