Abstract
Recognizing text in natural scenes is complicated by irregular shapes, varying orientations, and multi-lingual character sets. This paper summarizes a robust two-stage framework developed by researchers at Beihang University and the Chinese Academy of Sciences (CASIA). By combining instance segmentation for detection and an attention-based sequence model for recognition, the framework effectively handles arbitrary-shaped text. The approach achieved first place in the ICDAR2019 Robust Reading Challenge on Arbitrary-shaped Text (ArT).
Introduction
Traditional Scene Text Recognition (STR) often relies on the assumption that text is horizontal and rectangular. However, real-world "scene text"—found on storefronts, product packaging, or street signs—is frequently curved, tilted, or oriented vertically. Standard object detectors struggle with these irregular shapes. Furthermore, recognizing a mix of languages (e.g., Latin and Chinese) requires handling vastly different character sets and linguistic structures. This work bridges the gap between simple text detection and the complex cross-domain problem of translating visual features into meaningful linguistic sequences.
Methodology
The framework is divided into two specialized modules: detection and recognition.
Text Detection via Instance Segmentation
Instead of traditional bounding boxes, the authors employ Cascade Mask R-CNN to treat every word or text line as an "instance" to be segmented. A significant innovation is the Text-Aware Region Proposal Network (RPN). Inspired by Inception architectures, this RPN uses anisotropic $1 \times n$ and $n \times 1$ kernels to better capture the high aspect ratios typical of elongated text lines. This pixel-level masking approach allows the model to naturally adapt to any shape, including curved and vertical text.
Sequence-to-Sequence Recognition
Once the text region is masked and cropped, it is processed by a recognition engine. The backbone utilizes InceptionV4 for robust feature extraction.
The recognition process is treated as a machine translation problem. A Long Short-Term Memory (LSTM) network is paired with a Bahdanau Attention Mechanism, allowing the model to dynamically "focus" on specific parts of the feature map as it generates each character. To further enhance accuracy, the model incorporates word embeddings to leverage linguistic context, helping it predict characters based on preceding sequence information.
Datasets and Results
The framework was rigorously evaluated on several challenging benchmarks, including ICDAR2019-ArT (Arbitrary-shaped Text), LSVT, and ReCTS. Pre-training was conducted on large-scale datasets such as COCO-Text and ICDAR2017-MLT to ensure robust initialization.
The framework's performance was validated by its 1st place finish in the ICDAR2019-ArT competition. It achieved an H-mean (F1-score) of 52.45% on Latin-only text and 50.17% on multi-lingual tasks. On the ReCTS dataset, it showed exceptional performance on Chinese text with an H-mean of 90.30%.
Discussion and Conclusion
The success of this framework highlights the superiority of segmentation-based detection over bounding boxes for irregular text. The use of anisotropic kernels and attention-based decoding effectively bridges the gap between computer vision and natural language processing.
Despite its success, the authors noted hardware constraints—specifically the memory limits of 1080Ti GPUs—prevented training the framework in a truly end-to-end fashion. Future work will focus on integrating more powerful language models like BERT to provide better semantic context and developing a fully differentiable end-to-end pipeline.
Summary updated