DeepText: A Unified Framework for Text Proposal Generation and Text Detection in Natural Images

Zhuoyao Zhong, Lianwen Jin, Shuye Zhang, Ziyong FengarXiv 2016

Abstract

DeepText is a unified convolutional neural network (CNN) framework designed to streamline scene text detection into two specialized stages. By employing a multi-scale "Inception-RPN" for word proposal generation and a detection network with multi-level feature pooling, the system addresses the complexities of text in natural images. A significant contribution is the introduction of an "ambiguous" text category, which helps the model distinguish between clear text, partial overlaps, and background noise. DeepText achieved state-of-the-art accuracy on the ICDAR 2011 and 2013 benchmarks at the time of its publication in 2016.

Introduction

Detecting text in natural images—often referred to as "text in the wild"—presents unique challenges compared to document scanning. Text varies significantly in font, color, orientation, and scale. Moreover, natural backgrounds frequently contain "text-like" textures, such as bricks or fences, which can easily mislead standard computer vision models.

Prior to DeepText, many methods utilized "bottom-up" pipelines that first identified individual characters and then grouped them into words. These systems were often brittle, as errors at the character level would propagate throughout the entire process. While general object detection models like Faster R-CNN were available, they were not optimized for the extreme aspect ratios and specific textures characteristic of text.

Methods: The DeepText Pipeline

The authors propose a two-stage unified framework called DeepText, which integrates proposal generation and detection into a single CNN architecture.

The DeepText architecture featuring the Inception-RPN and the Text Detection Network.

1. Inception-RPN (Region Proposal Network)

Inspired by the Inception modules in GoogLeNet, this stage uses parallel convolutional layers with different kernel sizes (3x3 and 5x5). This design allows the network to capture features at multiple scales simultaneously. To better accommodate text, the authors designed 24 specific "prior boxes" (anchors) with aspect ratios tailored for long, thin word regions.

2. Text Detection Network

The second stage refines these proposals using two primary techniques:

  • Ambiguous Text Category (ATC): Unlike standard models that classify regions as either "text" or "background," DeepText introduces a third category for "ambiguous text." These are regions that overlap with text (typically 20% to 50% IoU) but do not fully capture a word. This prevents the model from receiving conflicting signals during training.
  • Multi-Level ROI Pooling (MLRP): The model pools features from both early layers (providing fine-grained detail) and later layers (providing high-level semantic context). This combination is crucial for defining character edges while understanding the broader context of a word.

3. Post-Processing

An iterative bounding box voting scheme and a custom filtering algorithm are used to merge overlapping detections and remove redundant boxes, ensuring a single, tight bounding box for each word.

Key Insights

A major innovation of DeepText is the use of the Ambiguous Label. By explicitly labeling partial overlaps as "ambiguous" rather than "background," the authors reduced noise in the training signal. This acknowledges that a partial word is more "text-like" than a patch of grass, helping the classifier converge on more precise boundaries.

Examples of text proposals with varying IoU scores, illustrating the 'ambiguous' text category.

Additionally, the framework recognizes that text is inherently multi-scale. Using Inception-style modules is effective because a single scene might contain both a massive billboard and a tiny street sign. The use of MLRP further highlights that text detection requires both "fine lines" for character edges and "global context" to confirm a string of shapes constitutes a word.

Datasets and Evaluation

The model was trained on a combined dataset of 4,072 images, including the ICDAR datasets supplemented with images from Flickr and the COCO-Text benchmark. Evaluation was conducted on the ICDAR 2011 and 2013 Robust Reading Competitions.

Results

DeepText outperformed previous state-of-the-art methods, such as TextFlow, at the time of publication:

  • ICDAR 2011: Achieved an F-measure of 0.83 (Precision: 0.85, Recall: 0.81).
  • ICDAR 2013: Achieved an F-measure of 0.85 (Precision: 0.87, Recall: 0.83).

In terms of efficiency, the system processes an image in approximately 1.7 seconds on a single NVIDIA GPU K40. While not real-time, it represented a significant advancement in the speed-accuracy trade-off for unified deep learning approaches.

Limitations and Future Work

Despite its success, the model's 1.7-second processing time is too slow for real-time video or mobile deployment. Furthermore, the architecture focuses primarily on horizontal or near-horizontal text; detecting highly rotated or curved text remains a challenge. Future research directions include improving location regression for tighter bounding boxes and increasing the recall of the initial proposal stage.

Summary updated

BibTeX
@misc{zhong2016deeptext,
  author = {Zhuoyao Zhong and Lianwen Jin and Shuye Zhang and Ziyong Feng},
  title = {{DeepText: A Unified Framework for Text Proposal Generation and Text Detection in Natural Images}},
  year = {2016},
  eprint = {1605.07314},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1605.07314},
}
Figure