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.
Introduction
Detecting text in natural scenes is a fundamental challenge in computer vision, primarily because text often appears in irregular, arbitrary shapes—curving, tilting, or wrapping around objects. Existing detectors generally struggle to balance speed and accuracy. Non-real-time methods achieve high precision but are too slow for edge devices, while current real-time methods often rely on "shrink masks" (reducing the text area by a fixed distance). These shrink-mask approaches frequently fail on irregular geometries, often fragmenting a single text instance into multiple disjointed pieces or failing to distinguish the text border from the background.
Methodology
To address these limitations, the authors introduce CM-Net, a framework built upon two core innovations: the Concentric Mask (CM) representation and the Multi-Perspective Feature (MPF) module.
Concentric Mask (CM) Representation
Unlike standard methods that shrink text by a fixed pixel distance, CM utilizes the Polar Minimum Distance (PMD)—the shortest distance from a center point to the text contour. By shrinking the mask by exactly half of this PMD, the resulting Concentric Mask becomes significantly more robust to irregular geometries, such as "hourglass" shapes, which typically cause fixed-distance masks to fail.
Multi-Perspective Feature (MPF) Module
The MPF module enhances the network's ability to recognize these masks through three auxiliary prediction headers used exclusively during the training phase:
- PMD Header: Encourages the network to learn local features by looking 360 degrees around the text.
- Ray Distance (RD) Header: Predicts distances in eight specific directions to improve contour awareness.
- Gap Mask (GM) Header: Specifically trains the model to distinguish the "gap" region between the text edge and the inner mask from the background.
Because these headers are discarded after training, the model benefits from more discriminative features without incurring any additional computational cost during inference.
Ratio Loss
To handle the varying scales of text—from tiny words to giant billboards—the authors introduced a Ratio Loss. This treats the difference between predicted and ground-truth offsets as a ratio (0 to 1), ensuring the model is scale-invariant and preventing large-scale text from dominating the training process.
Experimental Results
CM-Net was evaluated on four major benchmarks: MSRA-TD500, CTW1500, Total-Text, and ICDAR2015. The results demonstrate that CM-Net consistently outperforms existing real-time leaders like PAN and DB:
- MSRA-TD500: Achieved an 85.0% F-measure at 41.7 FPS, outperforming DB by 3.1% in accuracy.
- CTW1500: Reached 50.3 FPS, maintaining a high accuracy of 84.1% F-measure while being significantly faster than competitors.
- Efficiency: The model reduces computational cost (GFLOPs) by approximately 44% compared to the popular PAN detector.
Conclusion
CM-Net successfully bridges the gap between speed and accuracy in arbitrary-shaped text detection. By employing geometry-aware shrinking and auxiliary training tasks that add zero cost to inference, it provides a highly efficient solution for real-time applications. Future work may involve integrating this robust representation into end-to-end text spotting systems that combine detection and recognition.
Summary updated