Scene Text Recognition from Two-Dimensional Perspective

Minghui Liao

TL;DR

This paper proposes a novel approach to scene text recognition by treating it as a two-dimensional semantic segmentation problem rather than a one-dimensional sequence prediction task. Their Character Attention Fully Convolutional Network (CA-FCN) directly predicts character locations at a pixel level, leading to improved robustness and performance, especially for irregular text shapes and imprecise text detection.

What Problem Does This Paper Address?

Scene text recognition, the task of identifying and transcribing text in natural images (think street signs, product labels), has largely been tackled by framing it as a sequence-to-sequence problem, similar to speech recognition. While this approach has achieved good results for horizontal text, it overlooks a crucial aspect of scene text: its inherently two-dimensional nature. Text in images can be curved, oriented at various angles, or even scattered, deviating significantly from the linear structure of speech. Compressing this 2D information into a 1D sequence can lead to loss of valuable data and introduce errors. This paper aims to bridge this gap by developing a method that directly leverages the 2D spatial distribution of characters.

Methods

The core of the proposed solution is the Character Attention Fully Convolutional Network (CA-FCN). This model reframes text recognition as a semantic segmentation task. Instead of outputting a sequence, it predicts a pixel-wise map indicating the presence and class of characters.

Key components include:

  • Fully Convolutional Network (FCN) Backbone: Utilizes a VGG-16 backbone, modified to maintain spatial resolution throughout the network, enabling pixel-level predictions.
  • Pyramid-like Structure: Incorporates a structure to handle varying scales of characters effectively.
  • Character Attention Module: This module is crucial for dealing with noisy natural images. It learns to highlight foreground characters and suppress background noise, as well as help in separating crowded characters. This is achieved by appending attention mechanisms to each output layer of the VGG backbone.
  • Deformable Convolution: Applied in later stages of the network, deformable convolutions allow the network to learn flexible receptive fields. This is particularly useful for handling imprecise text bounding boxes from the detection stage, as it can adapt to include more relevant character information and exclude extraneous background.
  • Word Formation Module: After the CA-FCN generates pixel-wise character predictions, this module groups these predictions into words. It involves thresholding the prediction map, calculating average class probabilities for detected regions, and then sorting these regions to form the final word.

Datasets

The paper primarily uses synthetic data for training. For evaluation, they test on several standard benchmarks:

  • SynthText: A large synthetic dataset used for training.
  • IIIT5k-Words (IIIT): A dataset of 3000 test images collected from the web, with both 50-word and 1000-word lexicons.
  • Street View Text (SVT): A challenging dataset of 647 images from Google Street View, known for its low resolution and noise, with a 50-word lexicon.
  • ICDAR 2013 (IC13): A dataset of 1015 images, with specific filtering applied to remove non-alphanumeric characters or images with fewer than three characters.
  • CUTE: A dataset of 288 images specifically designed for curved text recognition.

Key Insights and Ideas

  • 2D is Better than 1D for Scene Text: The fundamental insight is that treating scene text as a 2D problem (like segmentation) is more natural and effective than forcing it into a 1D sequence, especially for irregular text.
  • Pixel-Level Character Prediction: By predicting characters at a pixel level, the model inherently captures spatial relationships and shapes, which are lost in sequence-based methods.
  • Attention for Robustness: The character attention mechanism is key to filtering out noise and focusing on relevant text features in complex natural scenes.
  • Deformable Convolutions Handle Imperfect Detections: The use of deformable convolutions significantly improves robustness to imprecise text bounding boxes, a common issue in real-world applications.
  • Synthetic Data is Sufficient: The model achieves state-of-the-art results without requiring fine-tuning on real-world images, demonstrating the power of well-generated synthetic data.

Key Results

The proposed CA-FCN achieves state-of-the-art performance on most of the evaluated benchmarks.

  • IIIT: Outperforms previous methods by 3.7% without lexicons.
  • CUTE (irregular text): Achieves a 3.1% improvement.
  • Robustness: The paper demonstrates that the CA-FCN is significantly more robust to imprecise text localization (expanded images) compared to sequence-based methods like CRNN and ACSM. For instance, on the IIIT-p dataset, the gap ratio for CRNN is 6.4%, while for CA-FCN it's only 2.6%.
  • Speed: The model achieves approximately 45 FPS on the IC13 dataset with a batch size of 1, with the CA-FCN costing 0.018 seconds per image and the word formation module adding another 0.004 seconds.

Limitations and Future Work

  • Word Formation Assumption: The current word formation module assumes that words are roughly sorted from left to right. This might not hold true in all scenarios.
  • Future Work: The authors suggest making the word formation module learnable and building an end-to-end text spotting system (combining detection and recognition seamlessly). They also believe their method could be further improved by adapting the "edit probability" idea from Bai et al. (2018) to their word formation module.

Summary updated

Abstract

Inspired by speech recognition, recent state-of-the-art algorithms mostly consider scene text recognition as a sequence prediction problem. Though achieving excellent performance, these methods usually neglect an important fact that text in images are actually distributed in two-dimensional space. It is a nature quite different from that of speech, which is essentially a one-dimensional signal. In principle, directly compressing features of text into a one-dimensional form may lose useful information and introduce extra noise. In this paper, we approach scene text recognition from a two-dimensional perspective. A simple yet effective model, called Character Attention Fully Convolutional Network (CA-FCN), is devised for recognizing the text of arbitrary shapes. Scene text recognition is realized with a semantic segmentation network, where an attention mechanism for characters is adopted. Combined with a word formation module, CA-FCN can simultaneously recognize the script and predict the position of each character. Experiments demonstrate that the proposed algorithm outperforms previous methods on both regular and irregular text datasets. Moreover, it is proven to be more robust to imprecise localizations in the text detection phase, which are very common in practice.
BibTeX
@inproceedings{liao2019scene,
  author = {Minghui Liao},
  title = {{Scene Text Recognition from Two-Dimensional Perspective}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33018714},
}
Figure