TL;DR
This paper introduces TextMountain, a novel scene text detection method that frames text detection as an instance segmentation problem. By predicting a "center-border probability" (TCBP) map that resembles a mountain, TextMountain effectively separates text instances and handles complex text shapes, achieving state-of-the-art results on multiple benchmarks.
What Problem Does This Paper Address?
Detecting text in natural scenes is a challenging task due to the wide variety of text shapes, sizes, orientations, and complex backgrounds. Existing methods often struggle with long text lines, curved text, and accurately separating adjacent text instances. While deep learning has significantly improved text detection, accurately segmenting individual text lines, especially those that are long or curved, remains an open problem. Traditional approaches often rely on predefined structures or bounding boxes, which can be restrictive.
Methods
The core innovation of TextMountain lies in its novel representation of text and its corresponding network architecture and loss functions.
- TextMountain Representation: Instead of treating text as simple bounding boxes or binary segmentation masks, TextMountain models text as a "mountain." The peak of this mountain represents the text center, and its slopes extend to the text borders. This is captured by two key predictions:
- Text Center-Border Probability (TCBP): A probability map where values gradually decay from the text center (high probability) to the text border (low probability). This smooth representation helps in separating instances.
- Text Center-Direction (TCD): A vector predicting the direction from each pixel towards the text center. This is particularly useful for grouping pixels belonging to the same text line and for handling curved text.
- Network Architecture: The method employs a Feature Pyramid Network (FPN) [24] backbone, a standard module in object detection, to extract multi-scale features. This FPN is adapted to output three maps: Text Score (TS), TCBP, and TCD.
- Loss Functions: The overall loss is a weighted sum of losses for TS, TCBP, and TCD.
- TS Loss: A standard cross-entropy loss for classifying pixels as text or non-text, using hard negative mining to handle class imbalance.
- TCBP Loss: An L1 loss that measures the difference between the predicted and ground truth TCBP values. This loss is applied only within text regions.
- TCD Loss: An L1 loss that measures the difference between predicted and ground truth TCD vectors, applied only in border regions and weighted by TCBP values.
- Grouping Algorithm: A novel parallel grouping algorithm is proposed for the post-processing stage. It leverages the TCBP and TCD maps to efficiently group pixels into text instances. This parallel approach significantly speeds up inference.
Datasets
The paper evaluates TextMountain on several widely-used scene text detection datasets:
- MLT (Multi-Lingual Scene Text Detection): A challenging dataset with text in multiple languages and scripts, including both word-level and line-level annotations.
- ICDAR2015: A benchmark for oriented scene text detection, with word-level annotations.
- RCTW-17 (Reading Chinese Text in the Wild): A large-scale dataset for Chinese text detection, with line-level annotations.
- SCUT-CTW1500: A dataset specifically designed for curved text detection, where text lines are labeled with polygons.
Key Insights and Ideas
- Mountain Metaphor for Text: Framing text detection as a "mountain" with a peak (center) and slopes (borders) is an intuitive and effective way to represent text instances, especially for complex shapes.
- TCBP for Instance Separation: The smooth TCBP map, unlike hard binary segmentation, provides richer information for distinguishing between adjacent text lines.
- TCD for Robustness and Grouping: The TCD map, while not strictly necessary for inference, significantly aids in learning a more robust TCBP and is crucial for effectively grouping pixels, especially for curved text.
- Parallel Grouping for Efficiency: The proposed parallel grouping algorithm is a key enabler for the method's efficiency, allowing it to process high-resolution images quickly.
- Unified Handling of Quadrangle and Curved Text: The TCBP and TCD framework naturally extends to handle both quadrangle and curved text lines without requiring separate models or complex post-processing rules for different shapes.
Key Results
TextMountain achieves state-of-the-art or comparable performance across various datasets:
- MLT: Achieved an F-measure of 76.85% in multi-scale testing, outperforming previous methods by a significant margin.
- ICDAR2015: Achieved an F-measure of 86.28% with a speed of 10.5 FPS, demonstrating both accuracy and efficiency.
- RCTW-17: Achieved an F-measure of 67.56% in multi-scale testing.
- SCUT-CTW1500: Achieved an F-measure of 83.2%, showcasing its effectiveness on curved text.
- Efficiency: The parallel grouping algorithm is significantly faster (e.g., 200x speedup compared to a cython implementation) than traditional grouping methods, especially for high-resolution images.
Limitations and Future Work
- Limitations:
- The paper notes that while TCD is beneficial for training, it's not used during inference.
- The TCBP definition is illustrated with quadrangle text but is stated to be extendable to curved text. The supplementary material provides details on curved text labeling.
- The method relies on the assumption that text lines have a more regular shape than general objects, which might be a limitation for extremely irregular or scattered text elements.
- Future Work: The authors express interest in exploring an end-to-end system for robust text detection and recognition.
Summary updated