Introduction
Detecting and recognizing text "in the wild"—within natural scene images—presents significant challenges compared to standard document scanning. Scene text varies dramatically in font, size, orientation, and lighting, often appearing against complex backgrounds or text-like textures such as brick walls or street signs.
Traditional deep learning approaches often frame text detection as a semantic segmentation problem, classifying pixels as "text" or "non-text." However, these models frequently struggle to separate closely spaced words, leading to merged "blobs" that require slow, hand-crafted post-processing heuristics to split into individual bounding boxes for recognition engines.
The WordFence Detection Network (WDN)
The authors introduce the WordFence Detection Network (WDN), a single-step approach that enhances semantic segmentation with "border awareness."
Border Awareness (WordFence)
Instead of binary classification, the model introduces a third class: an 8-pixel "border" surrounding each word. This artificial barrier forces the network to learn the spatial gaps between words. During inference, this "fence" cleanly separates adjacent words, allowing for simple connected-component analysis to extract bounding boxes.
Architecture and Loss
The WDN utilizes a ResNet-101 backbone with parallel convolutional layers employing different dilation parameters. These dilated convolutions expand the receptive field without increasing parameter count, enabling the network to capture text at multiple scales simultaneously.
To address the class imbalance where background pixels dominate, the authors implemented a Pixelwise Weighted Softmax Loss. This function dynamically calculates normalization factors inversely proportional to the pixel count of each class, ensuring the network prioritizes the relatively small text and border regions.
Key Results
The WDN was evaluated on standard benchmarks including ICDAR 2011, ICDAR 2013, and the more challenging Street View Text (SVT) dataset.
As shown in the results, WDN achieved a remarkable 92% recall on both ICDAR11 and ICDAR13, and 63% recall on SVT. This represents an average 15% improvement in recall over previous multi-scale detection methods. When paired with a state-of-the-art RNN-based recognition model, the end-to-end system achieved an 86% F-score on ICDAR13, matching or exceeding existing pipelines without the need for complex heuristic filtering.
Conclusion
WordFence demonstrates that explicit semantic modeling of word boundaries can eliminate the need for complex post-processing in text detection. While the multi-scale inference voting scheme ensures high recall, it may introduce computational overhead. Future work might explore optimizing this mechanism for real-time applications where high frames-per-second performance is critical.
Summary updated