Minghao Li, Tengchao Lv, Jingye Chen, Lei Cui, Yijuan Lu, Dinei Florencio, Cha Zhang, Zhoujun Li, Furu Wei
Text recognition is a long-standing research problem for document digitalization. Existing approaches are usually built based on CNN for image understanding and RNN for char-level text generation. In addition, another language model is usually needed to improve the overall accuracy as a post-processing step. In this paper, we propose an end-to-end text recognition approach with pre-trained image Transformer and text Transformer models, namely TrOCR, which leverages the Transformer architecture for both image understanding and wordpiece-level text generation. The TrOCR model is simple but effective, and can be pre-trained with large-scale synthetic data and fine-tuned with human-labeled datasets. Experiments show that the TrOCR model outperforms the current state-of-the-art models on the printed, handwritten and scene text recognition tasks. The TrOCR models and code are publicly available at \url{https://aka.ms/trocr}.
| Task | Dataset | Metric | Value | Model |
|---|---|---|---|---|
| Optical Character Recognition (OCR) | IAM(line-level) | Test CER | 3.4 | TrOCR |
| Optical Character Recognition (OCR) | IAM | CER | 2.89 | TrOCR-large 558M |
| Optical Character Recognition (OCR) | IAM | CER | 3.42 | TrOCR-base 334M |
| Optical Character Recognition (OCR) | IAM | CER | 4.22 | TrOCR-small 62M |
| Optical Character Recognition (OCR) | LAM(line-level) | Test CER | 3.6 | TrOCR |
| Optical Character Recognition (OCR) | LAM(line-level) | Test WER | 11.6 | TrOCR |
| Handwritten Text Recognition | IAM(line-level) | Test CER | 3.4 | TrOCR |
| Handwritten Text Recognition | IAM | CER | 2.89 | TrOCR-large 558M |
| Handwritten Text Recognition | IAM | CER | 3.42 | TrOCR-base 334M |
| Handwritten Text Recognition | IAM | CER | 4.22 | TrOCR-small 62M |
| Handwritten Text Recognition | LAM(line-level) | Test CER | 3.6 | TrOCR |
| Handwritten Text Recognition | LAM(line-level) | Test WER | 11.6 | TrOCR |