Abstract
Scene text detection is an important step of scene text reading system. The main challenges lie on significantly varied sizes and aspect ratios, arbitrary orientations and shapes. Driven by recent progress in deep learning, impressive performances have been achieved for multi-oriented text detection. Yet, the performance drops dramatically in detecting curved texts due to the limited text representation (e.g., horizontal bounding boxes, rotated rectangles, or quadrilaterals). It is of great interest to detect curved texts, which are actually very common in natural scenes. In this paper, we present a novel text detector named TextField for detecting irregular scene texts. Specifically, we learn a direction field pointing away from the nearest text boundary to each text point. This direction field is represented by an image of two-dimensional vectors and learned via a fully convolutional network. It encodes both binary text mask and direction information used to separate adjacent text instances, which is challenging for classical segmentation-based approaches. Based on the learned direction field, we apply a simple yet effective morphological-based post-processing to achieve the final detection. Experimental results show that the proposed TextField outperforms the state-of-the-art methods by a large margin (28% and 8%) on two curved text datasets: Total-Text and CTW1500, respectively, and also achieves very competitive performance on multi-oriented datasets: ICDAR 2015 and MSRA-TD500. Furthermore, TextField is robust in generalizing to unseen datasets.
Introduction
Scene text detection is a fundamental component of modern optical character recognition (OCR) systems. While significant progress has been made in detecting multi-oriented text, curved and irregular text shapes remain a major hurdle. Most existing detectors rely on rigid geometric representations such as horizontal bounding boxes, rotated rectangles, or quadrilaterals. These methods often fail to tightly bound curved text, leading to the inclusion of excessive background noise or the merging of adjacent text instances.
TextField addresses these issues by representing text instances as a continuous 2D direction field. This approach allows for the flexible detection of arbitrary shapes while providing a natural mechanism for instance separation.
The Deep Direction Field
The core innovation of TextField is the Deep Direction Field. Instead of a simple binary classification (text vs. non-text), the network is trained to predict a two-channel map of 2D vectors. For every pixel $p$ within a text instance, the model predicts a unit vector pointing from the nearest boundary point $N_p$ toward $p$. For non-text pixels, the vector is $(0,0)$.
This direction field encodes two critical pieces of information simultaneously:
- Text Mask: The magnitude of the vectors effectively defines the text region.
- Relative Position: The direction vectors point away from boundaries. At the interface between two adjacent words, the vectors point in opposite directions, making it easy to separate instances that would otherwise be merged by standard segmentation methods.
Methodology
Network Architecture
TextField utilizes a VGG16 backbone with a multi-level feature fusion strategy. Features from stages 3, 4, and 5 are upsampled and concatenated. This allows the model to leverage both high-level semantic information and low-level geometric details, which is essential for handling text at various scales.
Optimization
To ensure robust training, the authors employ an instance-balanced Euclidean loss. This loss function weights each text instance equally, preventing large words from dominating the gradient and ensuring small text instances are accurately learned. Additionally, Online Hard Negative Mining (OHNM) is used to focus the model on challenging non-text regions.
Post-processing
The final detection is achieved through a multi-step post-processing pipeline:
- Superpixel Grouping: Pixels are grouped into superpixels based on their predicted directions.
- Candidate Generation: The "root" pixels of these superpixels, which typically lie along the text's centerline, are dilated and connected to form candidate instances.
- Symmetry Filtering: Real text instances exhibit a symmetrical distribution of opposing vectors. Candidates that lack this symmetry are filtered out as false positives.
Experimental Results
TextField was evaluated on several benchmarks, demonstrating superior performance on curved text and competitive results on multi-oriented text.
- Curved Text: On the Total-Text dataset, TextField achieved an 80.6% F-measure, a 28% improvement over previous methods. On SCUT-CTW1500, it reached 81.4%, outperforming the previous state-of-the-art by 8%.
- Multi-oriented Text: The model achieved 82.4% on ICDAR 2015, showing its versatility across different text styles.
- Efficiency: The system operates at approximately 6.0 FPS on a Titan Xp, making it suitable for practical applications.
Conclusion
TextField introduces a novel direction field representation that effectively handles the challenges of irregular and curved scene text. By learning local geometric cues rather than global boxes, the model achieves high flexibility and robust instance separation. The significant performance gains on curved text benchmarks highlight the potential of field-based representations in scene text detection.
Summary updated