Scene Text Recognition with Sliding Convolutional Character Models

Fei Yin, Yi-Chao Wu, Xu-Yao Zhang, Cheng-Lin LiuarXiv 2017

Abstract

Scene text recognition has attracted great interests from the computer vision and pattern recognition community in recent years. State-of-the-art methods use convolutional neural networks (CNNs), recurrent neural networks with long short-term memory (RNN-LSTM) or the combination of them. In this paper, we investigate the intrinsic characteristics of text recognition, and inspired by human cognition mechanisms in reading texts, we propose a scene text recognition method with character models on convolutional feature map. The method simultaneously detects and recognizes characters by sliding the text line image with character models, which are learned end-to-end on text line images labeled with text transcripts. The character classifier outputs on the sliding windows are normalized and decoded with a Connectionist Temporal Classification (CTC) based algorithm. Compared to previous methods, our method has a number of appealing properties: (1) It avoids the difficulty of character segmentation; (2) The model can be trained simply and efficiently; (3) It is lexicon-free and can recognize unknown words; (4) The recognition process is highly parallel. Our experiments on several challenging English and Chinese benchmarks demonstrate that the proposed method yields superior or comparable performance while the model size is relatively small.

Introduction

Recognizing text in natural scenes is significantly more challenging than standard OCR due to extreme variations in font, color, orientation, and complex backgrounds. Traditional approaches often struggle with explicit character segmentation, which is error-prone in cluttered real-world images. Furthermore, while Recurrent Neural Networks (RNNs) like LSTMs are popular for sequence modeling, they can be difficult to train due to gradient vanishing/exploding issues and are inherently sequential, limiting parallelization.

Examples of challenging scene text images from the benchmarks used in the study, showcasing variations in font, style, and background.

To address these issues, this paper proposes a lexicon-free method that avoids explicit segmentation and is highly parallelizable. By mimicking human "saccades"—rapid eye movements during reading—the model slides a deep convolutional character model across text images to recognize characters in context.

Methodology

The proposed framework consists of three main components: a sliding window layer, a classification layer, and a transcription layer.

The proposed framework architecture showing the pipeline from input image to result sequence via sliding windows, a CNN classifier, and CTC transcription.

Sliding Window and Classification

Inspired by human fixations, the model slides a window across the text line, converting the image into a sequence of overlapping patches. A 15-layer Convolutional Neural Network (CNN) acts as the "eye," predicting a probability distribution over the alphabet (plus a "blank" symbol) for every window. The authors found that using multiple window widths ($n$) simultaneously helped capture better multi-scale context. For mobile deployment, a 38-layer Residual Network (ResNet) variant was also developed to optimize for size and speed.

Transcription with CTC

Because multiple sliding windows may overlap a single character, the model employs Connectionist Temporal Classification (CTC). CTC "collapses" the sequence of window predictions into a final string, effectively handling the alignment between the sliding windows and the actual characters. Crucially, the entire model is trained end-to-end using only images and their corresponding text transcripts, eliminating the need for labor-intensive character-level bounding box annotations.

Experimental Results

The models were evaluated on standard English benchmarks (IIIT-5K, SVT, ICDAR 2003/2013) and Chinese benchmarks (TRW15). To ensure robustness, the models were trained on massive synthetic datasets: 8 million English images and 9 million Chinese images covering 7,185 characters.

Performance and Efficiency

  • Accuracy: On the IIIT-5K dataset, the model achieved 81.6% accuracy in a lexicon-free setting, outperforming many complex RNN-based models. For Chinese text (TRW15-T), it reached an 81.2% Accuracy Rate (AR), a substantial improvement over the previous state-of-the-art of 72.1%.
  • Speed: The system is highly efficient due to its parallel nature. Unlike RNNs, the sliding window CNN can process all windows in a text line simultaneously on a GPU, making it roughly 10x faster than LSTM-based competitors (0.015s vs 0.16s per sample).
  • Compactness: The ResNet version is remarkably small at just 0.41MB, compared to hundreds of megabytes for other high-performing models, making it ideal for mobile hardware.

Conclusion

This research demonstrates that a bio-inspired sliding window approach combined with deep CNNs and CTC can effectively recognize scene text without the need for explicit segmentation or complex recurrent architectures. While the model excels at local context and speed, future work may explore integrating more long-range linguistic context and improving performance on highly distorted or curved text.

Summary updated

BibTeX
@misc{yin2017scene,
  author = {Fei Yin and Yi-Chao Wu and Xu-Yao Zhang and Cheng-Lin Liu},
  title = {{Scene Text Recognition with Sliding Convolutional Character Models}},
  year = {2017},
  eprint = {1709.01727},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1709.01727},
}
Figure