Abstract
Scene text detection in natural environments is complicated by varying orientations and perspective distortions. Traditional axis-aligned rectangular bounding boxes often encompass excessive background noise or fail to capture the full extent of slanted text, leading to suboptimal recognition and Non-Maximum Suppression (NMS) failures. We present the Deep Matching Prior Network (DMPNet), a novel approach that employs quadrilateral sliding windows to achieve tighter text localization. By integrating a shared Monte-Carlo method for efficient overlap calculation and a robust Smooth $L_n$ loss function, DMPNet significantly improves detection accuracy, achieving a 70.64% F-measure on the ICDAR 2015 benchmark.
1. Introduction
Object detection has historically relied on axis-aligned rectangular anchors. While effective for many categories, this representation is ill-suited for "incidental scene text"—text appearing on diverse surfaces with arbitrary tilts, such as street signs or product packaging. Rectangles introduce redundant background noise and can cause NMS to discard valid overlapping detections because the bounding boxes of neighboring tilted text lines have a high Intersection over Union (IoU), even if the text itself does not overlap. DMPNet addresses these issues by shifting the detection primitive from rectangles to flexible quadrilaterals.
2. The Deep Matching Prior Network
The DMPNet architecture introduces several innovations to handle the complex geometry of incidental text.
2.1 Quadrilateral Priors and Sequential Protocol
Instead of standard rectangular anchors, DMPNet utilizes intermediate convolutional layers to generate quadrilateral priors—including parallelograms and tilted rectangles—based on the intrinsic shapes of text. To regress the four points $(x,y)$ of a quadrangle effectively, the network requires a consistent starting point. The authors developed a sequential protocol to uniquely order the four points (starting from the leftmost point and moving clockwise or counter-clockwise based on slope), preventing the model from becoming "confused" during training.
2.2 Shared Monte-Carlo Method
Calculating the area of intersection between two arbitrary polygons is computationally expensive. To maintain efficiency, DMPNet employs a shared Monte-Carlo sampling approach. By sampling 10,000 points within a circumscribed rectangle, the system can estimate polygonal areas quickly and accurately on a GPU, facilitating faster training and inference.
2.3 Smooth $L_n$ Loss
The authors introduce a new loss function, Smooth $L_n$, which is a logarithmic-based loss designed to be more robust against outliers than $L_2$ loss. It provides a smoother gradient for small errors, allowing the model to "settle" into a tighter fit more effectively than piecewise linear losses like the standard Smooth $L_1$.
3. Experimental Evaluation
The primary benchmark for DMPNet is the ICDAR 2015 Robust Reading Competition Challenge 4 ("Incidental Scene Text"). This dataset is particularly challenging as text is often off-center, low-resolution, and annotated at the word level with quadrilaterals.
DMPNet significantly outperformed the state-of-the-art at the time of its release:
- F-measure: Achieved 70.64%, a substantial improvement over the previous best of 63.76%.
- Recall: Reached 68.22%, whereas many previous methods struggled to exceed 60%.
- Precision: Maintained a competitive 73.23%.
Qualitative results demonstrate that the detections provide much tighter fits around slanted text, effectively excluding background clutter that would have been trapped inside a standard rectangle.
4. Conclusion
DMPNet demonstrates that geometric precision is critical for scene text detection. By moving to quadrilaterals and optimizing for tightness, the model increases the signal-to-noise ratio within bounding boxes and improves overall recall. While the model still faces challenges with extremely tiny or inconspicuous text, it sets a new standard for handling multi-oriented text in the wild. Future work may involve shape-adaptive sliding windows that learn to adjust their own geometry based on image features, further reducing the reliance on manually designed priors.
Summary updated