Introduction
Scene text detection—the process of identifying and localizing text in natural images—is a fundamental component of computer vision applications like autonomous driving and real-time translation. However, traditional pipelines often struggle with "error accumulation." These systems typically follow a rigid sequence: character candidate detection, false positive removal, text line extraction, and final verification. If a true character is discarded early in the chain, it cannot be recovered, leading to poor recall. Furthermore, many methods rely on Connected Components (CCs), which fail on multi-stroke characters common in Chinese or Japanese scripts.
To address these issues, the authors propose Text Flow, a system that replaces the traditional multi-step pipeline with a unified graph optimization approach. The framework consists of two primary phases: character candidate detection and a min-cost flow network for extraction.
The Text Flow Framework
The first phase, Character Candidate Detection, prioritizes high recall. Using a sliding window approach powered by fast cascade boosting, the system identifies potential whole characters. Unlike CC-based methods, this top-down approach naturally handles complex, multi-stroke characters. While this step is intentionally "greedy" and introduces significant background noise (false positives), the subsequent unified step is designed to filter this noise effectively by considering the global context of text lines.
Unified Extraction via Min-Cost Flow
The core innovation of Text Flow is the formulation of text line extraction as a minimum-cost flow problem. This unified step simultaneously removes false positives and groups characters into coherent lines, avoiding the pitfalls of isolated sequential processing.
In this model, detected character candidates are represented as nodes in a graph. Edges are drawn between candidates that are likely to be adjacent in a text line. The optimization problem is defined by two types of costs:
- Unary Data Cost: A Convolutional Neural Network (CNN) provides a confidence score for each candidate patch. High-confidence text patches are assigned negative costs, encouraging the flow to pass through them.
- Pairwise Smoothness Cost: This evaluates the geometric relationship between adjacent nodes, considering factors like size similarity and spatial distance.
By solving for the minimum-cost paths from a source to a sink, the algorithm finds the most globally consistent set of text lines. False positives are naturally excluded because they rarely form low-cost paths with other candidates. This allows the system to "save" characters that might have had weak individual CNN scores but fit perfectly into a geometric line.
Experimental Results
Text Flow was evaluated on standard English benchmarks (ICDAR 2011/2013) and a specialized Multilingual Dataset containing both English and Chinese text.
- ICDAR 2011/2013: The system achieved state-of-the-art F-scores of approximately 80.9% and 80.3%, respectively, significantly outperforming previous competition winners.
- Multilingual Performance: On the multilingual dataset, Text Flow reached an 81.4% F-score. This represented a 7% improvement over the previous best method and a 10% jump in recall, proving its robustness against non-Latin scripts.
- Efficiency: Despite the complex graph optimization, the system processes images in approximately 1.4 seconds on a standard CPU, making it viable for practical applications.
Conclusion
Text Flow demonstrates that a holistic, graph-based approach to text detection can overcome the limitations of sequential pipelines. By deferring hard decisions and optimizing for global consistency, the system achieves high precision and recall across multiple languages. While the current implementation is optimized for horizontal text, the underlying graph formulation provides a flexible foundation for future work involving vertical or heavily skewed text orientations.
Summary updated