CM-Net: Concentric Mask Based Arbitrary-Shaped Text Detection

Chuang Yang, Mulin Chen, Zhitong Xiong, Yuan Yuan, Qi Wang · DOI

Abstract

Recently fast arbitrary-shaped text detection has become an attractive research topic. However, most existing methods are non-real-time, which may fall short in intelligent systems. Although a few real-time text methods are proposed, the detection accuracy is far behind non-real-time methods. To improve the detection accuracy and speed simultaneously, we propose a novel fast and accurate text detection framework, namely CM-Net, which is constructed based on a new text representation method and a multi-perspective feature (MPF) module. The former can fit arbitrary-shaped text contours by concentric mask (CM) in an efficient and robust way. The latter encourages the network to learn more CM-related discriminative features from multiple perspectives and brings no extra computational cost. Benefiting the advantages of CM and MPF, the proposed CM-Net only needs to predict one CM of the text instance to rebuild the text contour and achieves the best balance between detection accuracy and speed compared with previous works. Moreover, to ensure that multi-perspective features are effectively learned, the multi-factor constraints loss is proposed. Extensive experiments demonstrate the proposed CM is efficient and robust to fit arbitrary-shaped text instances, and also validate the effectiveness of MPF and constraints loss for discriminative text features recognition. Furthermore, experimental results show that the proposed CM-Net is superior to existing state-of-the-art (SOTA) real-time text detection methods in both detection speed and accuracy on MSRA-TD500, CTW1500, Total-Text, and ICDAR2015 datasets.

Addressing the Real-Time Challenge

Detecting text in natural scenes is a fundamental task for intelligent systems like autonomous robots and augmented reality. However, "text in the wild" is rarely uniform; it often appears curved, slanted, or irregularly shaped. While many non-real-time methods achieve high accuracy, they are often too computationally expensive for live applications. Conversely, existing real-time methods frequently sacrifice accuracy, particularly when dealing with irregular geometries.

Traditional real-time approaches often rely on "shrink masks"—predicting a smaller version of the text area to distinguish individual instances. These methods suffer from three primary flaws: geometric insensitivity (failing on complex shapes like hourglasses), feature neglect (ignoring the relationship between boundaries and internal masks), and scale variance (biasing models toward larger text instances).

Core Innovations: CM and MPF

CM-Net introduces three key technical innovations to overcome these limitations:

Concentric Mask (CM)

Instead of shrinking text by a fixed pixel distance, CM-Net utilizes the Polar Minimum Distance (PMD). This is the shortest distance from a text instance's center to its boundary. The Concentric Mask is generated by shrinking the contour by exactly half of the PMD. This adaptive approach ensures the mask remains topologically consistent with the original shape, regardless of local geometric nuances.

Multi-Perspective Feature (MPF) Module

To enhance feature representation without increasing inference time, the authors employ a "training-only" auxiliary module. During training, additional prediction headers force the model to learn the PMD, "Ray Distances" (distances to the boundary in eight directions), and a "Gap Mask" (the area between the CM and the outer boundary). These headers are discarded during inference, providing the backbone network with a richer understanding of text geometry for "free."

Comparison of ground-truth and predicted concentric masks with and without the MPF module.

Multi-factor Constraints Loss

Standard loss functions like Smooth-L1 can be sensitive to absolute scale. CM-Net introduces a Ratio Loss for regression tasks. By treating the difference between predicted and ground-truth offsets as a ratio, the model becomes scale-invariant, allowing it to detect tiny and large text instances with equal precision.

Experimental Performance

CM-Net was evaluated on four major public benchmarks: MSRA-TD500, CTW1500, Total-Text, and ICDAR2015. The results demonstrate a superior balance of speed and accuracy:

  • MSRA-TD500: Achieved an 85.0% F-measure at 41.7 FPS, outperforming popular models like DB (81.9%) and PAN (78.9%).
  • CTW1500: Reached 50.3 FPS, significantly faster than most competitors while maintaining a high 84.1% F-measure.
  • Efficiency: The framework reduces computational cost (GFLOPs) by approximately 44% compared to the PAN framework while delivering superior detection results.

Conclusion

CM-Net represents a significant step forward in real-time arbitrary-shaped text detection. By combining the adaptive Concentric Mask representation with the training-time Multi-Perspective Feature module, the framework achieves state-of-the-art performance without the computational overhead typical of high-accuracy models. While currently a detection-only framework, its robust geometric representation provides a strong foundation for future end-to-end text spotting systems.

Summary updated

BibTeX
@article{yang2020cm,
  author = {Chuang Yang and Mulin Chen and Zhitong Xiong and Yuan Yuan and Qi Wang},
  title = {{CM-Net: Concentric Mask Based Arbitrary-Shaped Text Detection}},
  journal = {IEEE Trans. Image Process.},
  year = {2020},
  doi = {10.48550/arxiv.2011.14714},
}
Figure