NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Arbitrary Shape Text Detection via Segmentation With Probability Maps

Shi-Xue Zhang, Xiaobin Zhu, Lei Chen, Jie-Bo Hou, Xu-Cheng Yin

TL;DR

This paper introduces a novel segmentation-based approach for detecting text of any shape (curved, rotated, or long) by replacing traditional binary masks with "Probability Maps." By using a flexible Sigmoid Alpha Function (SAF) and an iterative refinement module, the method overcomes the common problem of noisy, coarse-grained boundary annotations in scene text datasets, achieving state-of-the-art accuracy on major benchmarks.

What Problem Does This Paper Address?

Scene text detection is moving beyond simple horizontal boxes to "arbitrary shapes"—think of text on a curved soda can or a tilted storefront sign. While segmentation-based methods are naturally suited for these irregular shapes, they face a major hurdle: coarse-grained annotations.

Most datasets provide rough polygons rather than perfect pixel-level masks. This leads to "ambiguous pixels" near the boundaries that confuse the model, often resulting in "text adhesion" (merging nearby words) or broken detections. Standard binary masks (0 for background, 1 for text) don't account for the fact that a pixel's "certainty" of being text is highly related to its distance from the boundary.

Methods

The authors propose a system that moves away from binary classification toward continuous probability estimation.

  1. Sigmoid Alpha Function (SAF): The core innovation is a mathematical function that maps the distance from a pixel to the nearest text boundary into a probability value between 0 and 1. By adjusting a hyperparameter ($\alpha$), the model can generate a variety of probability distributions—ranging from linear gradients to sharp, near-binary transitions.
  2. Iterative Module (IM): Instead of predicting one mask, the network uses an iterative structure to predict a sequence of probability maps. Each step refines the previous one. To better handle the "strip-like" nature of text, the IM employs asymmetric convolution kernels ($1 \times 5$ and $5 \times 1$), which are more effective at capturing the elongated geometry of words and lines.
  3. Voting Filtering: During post-processing, the authors use a "voting" mechanism. They compare the predicted probability maps against a newly generated map based on the detected shape. If the predicted values don't align well with the geometric expectation, the detection is discarded as a false positive.
  4. Backbone: The system uses a ResNet-50 backbone with a multi-level feature fusion strategy (similar to a U-Net) to maintain high spatial resolution.

Datasets

The model was evaluated on five diverse public benchmarks:

  • Total-Text & CTW1500: Focused on curved and irregular text shapes.
  • MSRA-TD500: Contains multi-lingual, long text lines.
  • ICDAR2015: Incidental scene text with high variation in scale and orientation.
  • ICDAR2017-MLT: A large-scale multi-lingual dataset.
  • SynthText: Used for large-scale pre-training.

Key Insights and Ideas

  • Distance as Probability: The "aha moment" is treating the distance to the boundary as a proxy for the probability of being text. This naturally handles the uncertainty of human-labeled boundaries; pixels deep inside a word are "more" text than those on the fuzzy edge.
  • Size Awareness: Because the probability maps are scaled by the size of the text instance, the model inherently learns to distinguish between small, dense text and large, sparse text.
  • Robustness to Noise: By supervising the model with a group of probability maps (different $\alpha$ values), the network becomes more robust. If one map's prediction is slightly off, the others provide supplementary context to reconstruct the text instance correctly.

Key Results

The method achieved state-of-the-art (SOTA) performance across multiple datasets, particularly when using the Watershed Algorithm for post-processing:

  • Total-Text: Reached an 88.79% F-measure, outperforming previous SOTA methods like PAN and DB.
  • CTW1500: Achieved 85.75% F-measure.
  • MSRA-TD500: Achieved 88.93% F-measure.
  • Efficiency: The model is computationally efficient. While the highest accuracy version runs at ~7 FPS, a optimized version (using 1/2 resolution feature maps) reaches 25.2 FPS on CTW1500, making it nearly real-time.

Limitations and Future Work

The authors identify a few specific failure cases:

  • Large Character Spacing: When characters are very far apart, the limited receptive field of the convolutions can cause the model to fail to group them into a single instance.
  • Occlusion: Heavy physical occlusion can still break the predicted probability maps.
  • Future Direction: The authors suggest exploring more efficient text reconstruction algorithms to further boost inference speed and potentially integrating the detector into a full end-to-end text reading (OCR) system.

Summary updated

BibTeX
@article{zhang2023arbitrary,
  author = {Shi-Xue Zhang and Xiaobin Zhu and Lei Chen and Jie-Bo Hou and Xu-Cheng Yin},
  title = {{Arbitrary Shape Text Detection via Segmentation With Probability Maps}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2023},
  doi = {10.1109/tpami.2022.3176122},
}
Figure