Context Perception Parallel Decoder for Scene Text Recognition

Yongkun Du, Zhineng Chen, Caiyan Jia, Xiaoting Yin, Chenxia Li +2 more
7/23/2023
cs.CV

Official code: PaddlePaddle/PaddleOCR (86,599 stars, Apache-2.0, last commit 2026-04-28).

Abstract

Scene text recognition (STR) methods have struggled to attain high accuracy and fast inference speed. Autoregressive (AR)-based models implement the recognition in a character-by-character manner, showing superiority in accuracy but with slow inference speed. Alternatively, parallel decoding (PD)-based models infer all characters in a single decoding pass, offering faster inference speed but generally worse accuracy. We first present an empirical study of AR decoding in STR, and discover that the AR decoder not only models linguistic context, but also provides guidance on visual context perception. Consequently, we propose Context Perception Parallel Decoder (CPPD) to predict the character sequence in a PD pass. CPPD devises a character counting module to infer the occurrence count of each character, and a character ordering module to deduce the content-free reading order and placeholders. Meanwhile, the character prediction task associates the placeholders with characters. They together build a comprehensive recognition context. We construct a series of CPPD models and also plug the proposed modules into existing STR decoders. Experiments on both English and Chinese benchmarks demonstrate that the CPPD models achieve highly competitive accuracy while running approximately 8x faster than their AR-based counterparts. Moreover, the plugged models achieve significant accuracy improvements. Code is at \href{https://github.com/PaddlePaddle/PaddleOCR/blob/dygraph/doc/doc_en/algorithm_rec_cppd_en.md}{this https URL}.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Turn any PDF or image document into structured data for your AI. A powerful, lightweight OCR toolkit that bridges the gap between images/PDFs and LLMs. Supports 100+ languages.

86,59911,108C, C++May 8, 20205 months agoApache-2.0
ai4sciencechineseocrdocument-parsingdocument-translationkie+8 more

Similar Papers

Cite this paper

@article{du2023context,
  title  = {Context Perception Parallel Decoder for Scene Text Recognition},
  author = {Yongkun Du and Zhineng Chen and Caiyan Jia and Xiaoting Yin and Chenxia Li and Yuning Du and Yu-Gang Jiang},
  year   = {2023},
  eprint = {2307.12270},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.12270v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.12270.svg)](https://codeofpaper.com/paper/2307.12270)

Discussion