diff --git a/ocr.sh b/ocr.sh index 3e5a5ba..7313913 100755 --- a/ocr.sh +++ b/ocr.sh @@ -13,6 +13,7 @@ time=$(echo "$raw_text" | grep -oE '[0-2][0-9]:[0-5][0-9]') currency=$(echo "$raw_text" | grep -oP '(?<=Amount\s)[A-Z]{3}') amount=$(echo "$raw_text" | grep -oP '(?<=Amount\s[A-Z]{3}\s)[0-9]{1,3}(?:,[0-9]{3})*(?:\.[0-9]{2})') status=$(echo "$raw_text" | grep -oP '(?<=Status\s)[A-Z]+') +remarks=$(echo "$raw_text" | grep Remarks | sed 's/Remarks //') json=$(cat <