Parser for parsing OCR text. It takes a file path as input and prints all the data extracted in structured format i.e. json.
Refer to file pan-outputs.txt as a sample file.
JSON structure with name, father's name, pan no., date of birth(dob) as fields.
- ruby 2.3.1p112
- Ruby gem - json
ruby ocr_parser.py [file_path]
For example,
ruby ocr_parser.py pan-output.txt