From 115313ce3a535a3eee80e54809951cc3808eb946 Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Sat, 3 Aug 2024 02:01:55 +0500 Subject: [PATCH] added remarks --- ocr.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 <