MORAN: A Multi-Object Rectified Attention Network for scene text recognition

Canjie Luo, Lianwen Jin, Zenghui Sun · DOI

TL;DR

This paper introduces MORAN, a novel network for recognizing irregular scene text. MORAN combines a flexible rectification network (MORN) with an attention-based sequence recognition network (ASRN), achieving state-of-the-art performance on various benchmarks by effectively handling distorted text.

What Problem Does This Paper Address?

Recognizing text in natural images (scene text recognition) is crucial for many applications, but it's a challenging task. While regular, horizontal text can be handled with existing methods, irregular text – which can be slanted, perspective-distorted, or curved – poses a significant hurdle. The varying shapes and distortions make it difficult for recognition models to accurately identify characters. Existing methods often struggle with these complex deformations, leading to errors.

Methods

MORAN tackles this problem with a two-stage approach:

  • Multi-Object Rectification Network (MORN): This is the core innovation for handling irregular text. Unlike traditional methods that rely on fixed geometric transformations (like affine transformations), MORN is designed to be free of such constraints. It learns to predict offset maps for each part of the image, allowing it to "rectify" even severely distorted text into a more readable, regular form. Crucially, MORN is trained in a weak supervision manner, meaning it only needs image-text pairs, not pixel-level annotations for the distortions. This makes it more flexible and applicable to a wider range of irregular text.
  • Attention-based Sequence Recognition Network (ASRN): This component takes the rectified image from MORN and performs the actual text recognition. It's a standard CNN-LSTM architecture with an attention mechanism. To further improve its ability to focus on relevant character features and handle noise, the authors propose a fractional pickup method during training. This method introduces randomness by allowing the attention mechanism to sample neighboring features, effectively expanding its "visual field" and making it more robust to variations.
  • Curriculum Learning: To facilitate stable and efficient training of the MORAN, a three-step curriculum learning strategy is employed. First, the ASRN is trained on regular text. Then, the trained ASRN guides the MORN's training. Finally, both are jointly trained end-to-end.

Datasets

The paper evaluates MORAN on a variety of standard scene text recognition datasets:

  • Regular Text Datasets: IIIT5K, SVT, ICDAR2003 (IC03), ICDAR2013 (IC13), ICDAR2015 (IC15).
  • Irregular Text Datasets: SVT-Perspective (SVT-P), CUTE80.

The training primarily uses synthetic data from Jaderberg et al. [20] and Gupta et al. [15], totaling 8 million and 6 million images, respectively. No geometric or pixel-level labels are used for training.

Key Insights and Ideas

  • Rectification as a Preprocessing Step: The paper demonstrates that effectively rectifying irregular text before recognition significantly simplifies the recognition task, leading to better performance.
  • Geometric Constraint-Free Rectification: MORN's ability to rectify text without being limited by predefined geometric transformations is a key advantage, allowing it to handle complex distortions that other methods miss.
  • Weak Supervision for Rectification: Training MORN with only image-text pairs is a significant practical advantage, reducing the need for costly manual annotation of text distortions.
  • Fractional Pickup for Attention Robustness: The fractional pickup method enhances the attention mechanism's ability to focus on relevant features by introducing controlled randomness, making the ASRN more robust to noise and context variations.
  • Curriculum Learning for Stable Training: The staged training approach helps overcome the challenges of training two complex networks (MORN and ASRN) together, leading to better convergence and performance.

Key Results

MORAN achieves state-of-the-art performance across multiple benchmarks, particularly on irregular text datasets.

  • Overall Performance: On the IIIT5K dataset, MORAN with fractional pickup (FP) achieves 91.2% accuracy, outperforming other methods.
  • Irregular Text: On SVT-Perspective, MORAN achieves 94.3% accuracy (lexicon-free), and on CUTE80, it reaches 76.1% (lexicon-free), demonstrating its strength in handling perspective and curved text.
  • Contribution of Components: Table 4 shows that the full MORAN (with MORN and ASRN trained with FP) significantly outperforms using only ASRN or MORAN without FP, highlighting the effectiveness of each component.
  • Speed: On a GTX-1080Ti GPU, MORAN can recognize an image with five characters in 10.4ms in lexicon-free mode.

Limitations and Future Work

  • Curved Text Limitation: The paper notes that while MORAN handles small curve angles well, it can struggle with very large curve angles, sometimes mistaking complex backgrounds for foreground text. This is attributed to the training data primarily consisting of horizontal synthetic text.
  • Vertical Text: The current method is not designed for vertical text.
  • Future Work: The authors suggest extending the method to handle arbitrary-oriented text, which is more challenging due to wider variations in text and background. They also emphasize the importance of integrating MORAN with a robust text detection model for a complete end-to-end system.

Summary updated

BibTeX
@article{luo2019moran,
  author = {Canjie Luo and Lianwen Jin and Zenghui Sun},
  title = {{MORAN: A Multi-Object Rectified Attention Network for scene text recognition}},
  journal = {Pattern Recognition},
  year = {2019},
  doi = {10.1016/j.patcog.2019.01.020},
}
Figure