Optical
character
recognition

Transformer-based Multilingual Optical Character Recognition System for Thai and English Documents

EN / TH

Transformer-based Multilingual Optical Character Recognition System for Thai and English Documents

Abstract

A majority of Thai-English documents exist in a physical paper format, making digitization and information retrieval considerably challenging. Current Thai-English Optical Character Recognition (OCR) systems are still limited in accessibility and lack evaluation on various downstream real-world scenarios. They have a high character error rate measure of performance. To improve the current state of Thai-English OCR systems, we propose a transformer-based OCR (TrOCR) pretrained on a large synthetic image dataset generated from a collection of Thai and English corpora.

We show that our model can be fine-tuned for various downstream image modality tasks, including printed and handwritten text-line images. Our fine-tuned model achieved character error rates (CER) of 0.73%, 1.32%, and 3.14% on scanned, camera-captured, and handwritten recognition respectively. The accuracy of our OCR system which measures the number of correct predictions to the total number of predictions is at 94.10%, 93.82%, and 86.74% respectively. The model can also be fine-tuned on a smaller dataset while still preserving the CER. We believe that our model and evaluation provide the next milestone developments for the current state of the Thai-English OCRs.

Demo

 

We have implemented the demo website for the proposed OCR system 

which combines a text detection and recognition model here. 

You can access the demo through the button below.