TextBoxes: A Fast Text Detector with a Single Deep Neural Network

Minghui Liao, Baoguang Shi, Xiang Bai, Xinggang Wang, Wenyu Liu

Introduction

Detecting text in natural scenes—such as road signs, storefronts, or product packaging—presents unique challenges compared to standard Optical Character Recognition (OCR). Scene text exhibits extreme variations in font, size, orientation, and illumination, often set against complex, cluttered backgrounds. Traditional approaches typically relied on multi-stage "bottom-up" pipelines that first detected characters and then grouped them into words using heuristic rules. These systems were often slow and difficult to optimize.

While general object detectors like SSD and Faster R-CNN have advanced computer vision, they often struggle with text due to the extreme aspect ratios of words. TextBoxes addresses these issues by introducing a single-shot, end-to-end trainable fully convolutional network (FCN) optimized specifically for the geometric properties of text.

Methodology

TextBoxes is a 28-layer FCN inspired by the Single Shot MultiBox Detector (SSD) architecture. It modifies the base network to better suit text detection through several key innovations:

Text-box Layers and Irregular Kernels

Unlike standard object detection layers, TextBoxes utilizes specialized "text-box layers." A critical design choice is the use of irregular convolutional kernels. While most networks use square $3 \times 3$ filters, TextBoxes employs $1 \times 5$ kernels. This "inception-style" approach aligns the receptive field with the elongated horizontal nature of words, preventing the inclusion of noisy background signals from above or below the text line.

The TextBoxes architecture, featuring specialized text-box layers and irregular convolutional kernels integrated into a VGG-16 backbone.

Dense Aspect Ratios and Offsets

To accommodate varying word lengths, the network defines default boxes with six distinct aspect ratios: 1, 2, 3, 5, 7, and 10. Furthermore, vertical offsets are applied to these boxes to ensure dense spatial coverage, allowing the model to capture text at multiple scales and positions effectively.

Recognition Integration

The detector can be seamlessly paired with a Convolutional Recurrent Neural Network (CRNN) for recognition. Beyond transcription, the recognizer's confidence scores serve as a secondary filter, effectively regularizing the detector by suppressing false positives that lack readable character structures.

Evaluation and Results

The model was evaluated on standard benchmarks including ICDAR 2011, ICDAR 2013, and the Street View Text (SVT) dataset.

Performance and Efficiency

TextBoxes demonstrates a superior balance of speed and accuracy. In its "Fast" configuration, it achieves an inference time of just 0.09 seconds per image, significantly outperforming multi-stage competitors. On the ICDAR 2011 dataset, it reached an F-measure of 0.85, surpassing previous state-of-the-art methods.

Comparison of TextBoxes against other state-of-the-art methods on ICDAR 2011 and 2013 datasets, highlighting its superior speed and competitive accuracy.

End-to-End Accuracy

When integrated with a CRNN recognizer, TextBoxes set new benchmarks for end-to-end text spotting. On the SVT dataset, it improved upon existing methods by over 8%, proving that a unified deep learning approach can handle both localization and recognition more effectively than fragmented pipelines.

Conclusion

TextBoxes proves that a single-shot deep neural network can achieve state-of-the-art performance in scene text detection by incorporating domain-specific architectural priors. By utilizing irregular kernels and dense aspect ratios, the model efficiently handles the unique geometry of text. While currently optimized for horizontal text, future iterations aim to extend this framework to multi-oriented and curved text detection.

Summary updated

BibTeX
@inproceedings{liao2017textboxes,
  author = {Minghui Liao and Baoguang Shi and Xiang Bai and Xinggang Wang and Wenyu Liu},
  title = {{TextBoxes: A Fast Text Detector with a Single Deep Neural Network}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.1609/aaai.v31i1.11196},
}
Figure