Extending TrOCR for text localization-free OCR of full-page scanned receipt images. Zhang, H., Whittaker, E., & Kitagishi, I. 2022. Version Number: 2
Paper doi abstract bibtex Digitization of scanned receipts aims to extract text from receipt images and save it into structured documents. This is usually split into two sub-tasks: text localization and optical character recognition (OCR). Most existing OCR models only focus on the cropped text instance images, which require the bounding box information provided by a text region detection model. Introducing an additional detector to identify the text instance images in advance is inefficient, however instance-level OCR models have very low accuracy when processing the whole image for the document-level OCR, such as receipt images containing multiple text lines arranged in various layouts. To this end, we propose a localization-free document-level OCR model for transcribing all the characters in a receipt image into an ordered sequence end-to-end. Specifically, we finetune the pretrained Transformer-based instance-level model TrOCR with randomly cropped image chunks, and gradually increase the image chunk size to generalize the recognition ability from instance images to full-page images. In our experiments on the SROIE receipt OCR dataset, the model finetuned with our strategy achieved 64.4 F1-score and a 22.8% character error rates (CER) on the word-level and character-level metrics, respectively, which outperforms the baseline results with 48.5 F1-score and 50.6% CER. The best model, which splits the full image into 15 equally sized chunks, gives 87.8 F1-score and 4.98% CER with minimal additional pre or post-processing of the output. Moreover, the characters in the generated document-level sequences are arranged in the reading order, which is practical for real-world applications.
@misc{zhang2022extending,
title = {Extending {TrOCR} for text localization-free {OCR} of full-page scanned receipt images},
copyright = {Creative Commons Attribution Share Alike 4.0 International},
url = {https://arxiv.org/abs/2212.05525},
doi = {10.48550/ARXIV.2212.05525},
abstract = {Digitization of scanned receipts aims to extract text from receipt images and save it into structured documents. This is usually split into two sub-tasks: text localization and optical character recognition (OCR). Most existing OCR models only focus on the cropped text instance images, which require the bounding box information provided by a text region detection model. Introducing an additional detector to identify the text instance images in advance is inefficient, however instance-level OCR models have very low accuracy when processing the whole image for the document-level OCR, such as receipt images containing multiple text lines arranged in various layouts. To this end, we propose a localization-free document-level OCR model for transcribing all the characters in a receipt image into an ordered sequence end-to-end. Specifically, we finetune the pretrained Transformer-based instance-level model TrOCR with randomly cropped image chunks, and gradually increase the image chunk size to generalize the recognition ability from instance images to full-page images. In our experiments on the SROIE receipt OCR dataset, the model finetuned with our strategy achieved 64.4 F1-score and a 22.8\% character error rates (CER) on the word-level and character-level metrics, respectively, which outperforms the baseline results with 48.5 F1-score and 50.6\% CER. The best model, which splits the full image into 15 equally sized chunks, gives 87.8 F1-score and 4.98\% CER with minimal additional pre or post-processing of the output. Moreover, the characters in the generated document-level sequences are arranged in the reading order, which is practical for real-world applications.},
language = {en},
urldate = {2023-05-19},
publisher = {arXiv},
author = {Zhang, Hongkuan and Whittaker, Edward and Kitagishi, Ikuo},
year = {2022},
note = {Version Number: 2},
keywords = {\#nosource, Computation and Language (cs.CL), Computer Science - Computation and Language, Computer Science - Computer Vision and Pattern Recognition, Computer Vision and Pattern Recognition (cs.CV), FOS: Computer and information sciences},
}
Downloads: 0
{"_id":"y59fEzu5f3QfC2S3c","bibbaseid":"zhang-whittaker-kitagishi-extendingtrocrfortextlocalizationfreeocroffullpagescannedreceiptimages-2022","author_short":["Zhang, H.","Whittaker, E.","Kitagishi, I."],"bibdata":{"bibtype":"misc","type":"misc","title":"Extending TrOCR for text localization-free OCR of full-page scanned receipt images","copyright":"Creative Commons Attribution Share Alike 4.0 International","url":"https://arxiv.org/abs/2212.05525","doi":"10.48550/ARXIV.2212.05525","abstract":"Digitization of scanned receipts aims to extract text from receipt images and save it into structured documents. This is usually split into two sub-tasks: text localization and optical character recognition (OCR). Most existing OCR models only focus on the cropped text instance images, which require the bounding box information provided by a text region detection model. Introducing an additional detector to identify the text instance images in advance is inefficient, however instance-level OCR models have very low accuracy when processing the whole image for the document-level OCR, such as receipt images containing multiple text lines arranged in various layouts. To this end, we propose a localization-free document-level OCR model for transcribing all the characters in a receipt image into an ordered sequence end-to-end. Specifically, we finetune the pretrained Transformer-based instance-level model TrOCR with randomly cropped image chunks, and gradually increase the image chunk size to generalize the recognition ability from instance images to full-page images. In our experiments on the SROIE receipt OCR dataset, the model finetuned with our strategy achieved 64.4 F1-score and a 22.8% character error rates (CER) on the word-level and character-level metrics, respectively, which outperforms the baseline results with 48.5 F1-score and 50.6% CER. The best model, which splits the full image into 15 equally sized chunks, gives 87.8 F1-score and 4.98% CER with minimal additional pre or post-processing of the output. Moreover, the characters in the generated document-level sequences are arranged in the reading order, which is practical for real-world applications.","language":"en","urldate":"2023-05-19","publisher":"arXiv","author":[{"propositions":[],"lastnames":["Zhang"],"firstnames":["Hongkuan"],"suffixes":[]},{"propositions":[],"lastnames":["Whittaker"],"firstnames":["Edward"],"suffixes":[]},{"propositions":[],"lastnames":["Kitagishi"],"firstnames":["Ikuo"],"suffixes":[]}],"year":"2022","note":"Version Number: 2","keywords":"#nosource, Computation and Language (cs.CL), Computer Science - Computation and Language, Computer Science - Computer Vision and Pattern Recognition, Computer Vision and Pattern Recognition (cs.CV), FOS: Computer and information sciences","bibtex":"@misc{zhang2022extending,\n\ttitle = {Extending {TrOCR} for text localization-free {OCR} of full-page scanned receipt images},\n\tcopyright = {Creative Commons Attribution Share Alike 4.0 International},\n\turl = {https://arxiv.org/abs/2212.05525},\n\tdoi = {10.48550/ARXIV.2212.05525},\n\tabstract = {Digitization of scanned receipts aims to extract text from receipt images and save it into structured documents. This is usually split into two sub-tasks: text localization and optical character recognition (OCR). Most existing OCR models only focus on the cropped text instance images, which require the bounding box information provided by a text region detection model. Introducing an additional detector to identify the text instance images in advance is inefficient, however instance-level OCR models have very low accuracy when processing the whole image for the document-level OCR, such as receipt images containing multiple text lines arranged in various layouts. To this end, we propose a localization-free document-level OCR model for transcribing all the characters in a receipt image into an ordered sequence end-to-end. Specifically, we finetune the pretrained Transformer-based instance-level model TrOCR with randomly cropped image chunks, and gradually increase the image chunk size to generalize the recognition ability from instance images to full-page images. In our experiments on the SROIE receipt OCR dataset, the model finetuned with our strategy achieved 64.4 F1-score and a 22.8\\% character error rates (CER) on the word-level and character-level metrics, respectively, which outperforms the baseline results with 48.5 F1-score and 50.6\\% CER. The best model, which splits the full image into 15 equally sized chunks, gives 87.8 F1-score and 4.98\\% CER with minimal additional pre or post-processing of the output. Moreover, the characters in the generated document-level sequences are arranged in the reading order, which is practical for real-world applications.},\n\tlanguage = {en},\n\turldate = {2023-05-19},\n\tpublisher = {arXiv},\n\tauthor = {Zhang, Hongkuan and Whittaker, Edward and Kitagishi, Ikuo},\n\tyear = {2022},\n\tnote = {Version Number: 2},\n\tkeywords = {\\#nosource, Computation and Language (cs.CL), Computer Science - Computation and Language, Computer Science - Computer Vision and Pattern Recognition, Computer Vision and Pattern Recognition (cs.CV), FOS: Computer and information sciences},\n}\n\n\n\n","author_short":["Zhang, H.","Whittaker, E.","Kitagishi, I."],"key":"zhang2022extending","id":"zhang2022extending","bibbaseid":"zhang-whittaker-kitagishi-extendingtrocrfortextlocalizationfreeocroffullpagescannedreceiptimages-2022","role":"author","urls":{"Paper":"https://arxiv.org/abs/2212.05525"},"keyword":["#nosource","Computation and Language (cs.CL)","Computer Science - Computation and Language","Computer Science - Computer Vision and Pattern Recognition","Computer Vision and Pattern Recognition (cs.CV)","FOS: Computer and information sciences"],"metadata":{"authorlinks":{}},"html":""},"bibtype":"misc","biburl":"https://bibbase.org/zotero/fsimonetta","dataSources":["7PTj9uCrffbdGYthn","pzyFFGWvxG2bs63zP"],"keywords":["#nosource","computation and language (cs.cl)","computer science - computation and language","computer science - computer vision and pattern recognition","computer vision and pattern recognition (cs.cv)","fos: computer and information sciences"],"search_terms":["extending","trocr","text","localization","free","ocr","full","page","scanned","receipt","images","zhang","whittaker","kitagishi"],"title":"Extending TrOCR for text localization-free OCR of full-page scanned receipt images","year":2022}