TL;DR
This paper introduces PBFormer, a novel scene text detection system that uses a "Polynomial Band" (PB) representation to capture complex text shapes with a fixed number of parameters. By integrating this representation with a transformer architecture and a new cross-scale attention mechanism, PBFormer achieves state-of-the-art performance on challenging datasets without requiring text pre-training.
What Problem Does This Paper Address?
Detecting text in images, especially in complex scenes, is a challenging task. Text can appear in various shapes, from straight lines to highly curved forms, and can be densely packed, making it difficult to distinguish individual instances. Existing methods often struggle with these complexities. Point-based methods require a variable and potentially large number of points to represent intricate shapes, while segmentation-based methods can have trouble separating adjacent text instances. This paper aims to address these limitations by proposing a more robust and efficient way to represent and detect arbitrary-shaped text.
Methods
The core innovation of PBFormer is its Polynomial Band (PB) representation. Instead of using discrete points or pixel masks, PB models text shapes using four polynomial curves: one for the top, bottom, left, and right boundaries of the text. These curves are defined by a fixed set of polynomial coefficients and boundary variables, allowing them to capture a wide range of curvatures with a consistent representation.
PBFormer integrates this PB representation into a transformer-based architecture. A key component is the parameter-free Cross-Scale Pixel Attention (CPA) module. This module enhances feature maps from different scales by selectively highlighting relevant text features and suppressing others, which is crucial for detecting texts of varying sizes and for transformer models that don't rely on Non-Maximum Suppression (NMS). The transformer decoder then predicts the parameters of the PB.
To train the model effectively, a shape-constrained loss function is introduced. This loss function not only ensures that the predicted curves align with the ground truth but also enforces consistency between the curve's shape and its defined range, leading to more accurate contour predictions. The entire system is designed as a single-stage detector, simplifying the pipeline and improving efficiency.
Datasets
PBFormer was evaluated on several standard scene text detection benchmarks:
- CTW1500: A dataset known for multi-oriented and curved text.
- Total-Text: Another dataset featuring multi-oriented and curved text.
- DAST1500: A dataset with dense and irregular text, collected from online sources.
- MLT2019: A multi-oriented, multi-language dataset.
- ArT2019: A complex, multi-lingual, arbitrary-shaped scene text detection dataset.
The authors also mention using CurvedSynthText for pre-training experiments.
Key Insights and Ideas
- Polynomials as a Unified Shape Representation: The idea of using a fixed set of polynomial coefficients to represent diverse and complex text shapes is a significant departure from traditional point-based or segmentation methods. This offers a more compact and potentially more discriminative representation.
- Distinguishing Adjacent Texts: The PB representation's coefficients are shown to be more discriminative in parameter space, allowing for better separation of closely located text instances compared to methods that rely on spatial proximity of points or masks.
- Parameter-Free Attention for Efficiency: The CPA module, being parameter-free, adds no computational overhead during training, making the overall model more efficient. Its ability to adaptively select features across scales is crucial for handling the scale variations inherent in scene text.
- Shape Constraints for Contour Accuracy: The shape-constrained loss is vital for ensuring that predicted curves not only match the ground truth but also have realistic lengths and shapes, preventing issues like overly short or long contour predictions.
Key Results
PBFormer achieved state-of-the-art performance on several challenging datasets.
- On CTW1500, it reached an F-measure of 87.0% (without pre-training) and 88.7% (with pre-training), outperforming previous methods.
- On Total-Text, it achieved an F-measure of 87.1% (without pre-training) and 88.8% (with pre-training).
- PBFormer demonstrated strong performance on DAST1500 and MLT2019 as well.
- The method is also efficient, running at 24.7 FPS on CTW1500 and Total-Text, making it significantly faster than many other transformer-based detectors.
- Qualitative results showed PBFormer's ability to handle crowded, long, and curved texts more effectively than existing methods like TESTR*, DB++, and FCENet.
Limitations and Future Work
- Limitations: While PBFormer shows strong performance, the paper notes that it is trained without character-level annotations, which some other methods leverage. The effectiveness of the CPA module is attributed to its selective mechanism being compatible with DETR-like detectors, suggesting potential limitations when integrated with architectures that have different fusion strategies.
- Future Work: The paper demonstrates the compatibility of the PB representation with existing recognition modules, suggesting that PBFormer can serve as a robust foundation for end-to-end text spotting systems. Future work could explore further optimizations or extensions of the PB representation and its integration into more complex multi-modal tasks.
Summary updated