PixelLink: Detecting Scene Text via Instance Segmentation

Dan Deng, Haifeng Liu, Xuelong Li, Deng Cai

Abstract

PixelLink presents a novel approach to scene text detection by reframing the problem as an instance segmentation task rather than a bounding box regression challenge. By predicting pixel-wise text/non-text labels and connectivity links between neighboring pixels, the model effectively separates adjacent text instances. This method achieves state-of-the-art performance on standard benchmarks while requiring significantly less training data and fewer iterations than traditional regression-based detectors.

Introduction

Detecting text in natural scenes is inherently difficult due to extreme variations in scale, orientation, and aspect ratio. Most contemporary detectors rely on bounding box regression, predicting offsets from anchors or absolute coordinates. While effective, these methods are often complex to tune and demand extensive training data to master precise geometric coordinates.

Semantic segmentation offers an alternative by classifying pixels directly. However, a major hurdle in scene text is that words often appear very close to one another. Standard semantic segmentation tends to "glue" these adjacent instances into a single blob. PixelLink addresses this by performing instance segmentation, allowing the model to distinguish and separate nearby text blocks without the need for coordinate regression.

Methodology

The core of PixelLink is a Deep Neural Network (DNN) based on a modified VGG16 architecture. The network performs two simultaneous pixel-wise predictions:

  1. Text/Non-text Prediction: A classification task to determine if a pixel belongs to a text instance.
  2. Link Prediction: For every pixel, the model predicts whether it is "linked" to its eight immediate neighbors. A link is considered positive only if both pixels belong to the same text instance.

The Workflow

The architecture utilizes feature fusion to handle multiple scales, offering two versions: 2s (high resolution, 1/2 input size) and 4s (high speed, 1/4 input size). After the network outputs the pixel and link maps, positive pixels are grouped into Connected Components (CCs) based on the predicted links. If two adjacent text pixels lack a positive link between them, they are treated as separate instances. Finally, bounding boxes are extracted directly from these CCs using standard geometric functions like OpenCV’s minAreaRect, completely bypassing coordinate regression.

To ensure balanced learning, the authors implemented an Instance-Balanced Loss. This weighted loss function ensures that every text instance contributes equally to the training process, regardless of its total pixel area.

Experiments and Results

PixelLink was evaluated on several prominent scene text benchmarks, including ICDAR2015 (incidental text), ICDAR2013 (horizontal text), and MSRA-TD500 (multi-oriented long text lines).

  • State-of-the-Art Performance: On ICDAR2015, the PixelLink+VGG16 2s model achieved an F-score of 83.7%, outperforming the previous best single-scale method (EAST) by 5.5%.
  • Robustness to Scale: The model excels at detecting long text lines, reaching a 77.8% F-score on MSRA-TD500, a significant improvement over EAST+VGG16 (70.2%).
  • Efficiency: The "4s" model provides a high-speed alternative, reaching 7.3 FPS with an 82.3% F-score on IC15, while the "2s" model prioritizes accuracy at 3.0 FPS.

Discussion

A key insight from this research is that precise localization can be recovered purely from local pixel-wise relationships. Because PixelLink only examines a pixel and its immediate neighbors to decide on a link, it has much lower receptive field requirements compared to methods that must observe an entire text line to predict its geometry. Furthermore, the model can be trained from scratch in far fewer iterations (approx. 25k-40k vs. >100k for competitors), suggesting that "linking" is a more intuitive task for neural networks than coordinate regression.

Despite its strengths, the method relies on high-resolution predictions for optimal results, which can impact inference speed. It also requires simple geometric post-filtering to remove noise. Future work may involve applying the PixelLink concept to broader instance segmentation tasks and utilizing more modern backbones like ResNet to further enhance performance.

Conclusion

PixelLink demonstrates that bounding box regression is not indispensable for high-performance scene text detection. By leveraging instance segmentation through pixel linking, the model provides a robust, efficient, and accurate solution for localizing text in complex natural environments.

Summary updated

BibTeX
@inproceedings{deng2018pixellink,
  author = {Dan Deng and Haifeng Liu and Xuelong Li and Deng Cai},
  title = {{PixelLink: Detecting Scene Text via Instance Segmentation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.12269},
}
Figure