diff --git a/ocr.sh b/ocr.sh index a2ed692..96da32f 100755 --- a/ocr.sh +++ b/ocr.sh @@ -17,8 +17,23 @@ remarks=$(echo "$raw_text" | grep Remarks | sed 's/Remarks //') from=$(echo "$raw_text" | grep From | sed 's/From //') to_name=$(echo "$raw_text"| grep -B1 $to_number | grep -v $to_number) -json='{"Amount":"$amount","Currency":"$currency","Date":"$date $time","From":"$from","referece":"$referece","Remarks":"$remarks","Status":"$status","To":{"Account":"$to_number","Name":"$to_name"}}' +json=$(cat <