Text Flow: A Unified Text Detection System in Natural Scene Images

Shangxuan Tian, Yifeng Pan, Chang Huang, Shijian Lu, Kai Yu, Chew Lim Tan

Abstract

Scene text detection often suffers from error accumulation in multi-stage pipelines. This paper introduces "Text Flow," a unified framework that models text line extraction as a minimum cost (min-cost) flow network. By simultaneously removing false positives and grouping characters into lines, the system significantly reduces error accumulation and boosts performance on both Latin and multi-script datasets, particularly in terms of recall.

Introduction

Traditional scene text detection typically follows a sequential "leaky bucket" process: detecting character candidates, removing false positives, extracting text lines, and finally verifying those lines. The primary drawback of this approach is error propagation; a failure at any early stage—such as missing a character or retaining a false positive—compounds in later steps, leading to poor overall recall. Furthermore, many existing methods rely on Connected Components (CCs), which often fail with complex scripts like Chinese or Japanese where characters may consist of multiple disconnected strokes.

Methods: The Text Flow Framework

The authors propose a two-stage unified framework designed to overcome these limitations.

Character Candidate Detection

Instead of relying on CCs, the system employs a sliding window approach with cascade boosting. This method treats characters as single units, making it inherently robust to multi-component characters common in non-Latin scripts. Initial detection uses six simple features (intensity, gradients) for speed, followed by a Convolutional Neural Network (CNN) to refine the confidence scores of the candidates.

Min-Cost Flow Network

The core innovation is the transformation of text line extraction into a global optimization problem. Detected character candidates are represented as nodes in a graph:

  • Unary Data Cost: Derived from the CNN confidence score, representing the likelihood of a node being a character.
  • Pairwise Smoothness Cost: Based on geometric relationships, such as size similarity and horizontal spacing between candidates.
Figure 3: Multilingual text detection on a complex background (food cart), illustrating the challenge of extracting multiple lines of text in different scripts.

By finding paths through this network that minimize the total cost, the system performs false candidate removal, line extraction, and verification in a single step. This holistic approach allows weak character candidates to be "saved" if they contribute to a high-confidence sequence, effectively leveraging the "flow" of the entire line.

Evaluation and Results

The model was evaluated on standard benchmarks (ICDAR 2011, ICDAR 2013) and a Multilingual Dataset containing English and Chinese text. Text Flow achieved state-of-the-art results at the time of its publication (2015). On the ICDAR 2013 dataset, it reached an F-score of 80.25%, significantly outperforming previous methods. The most notable improvement was in recall, which reached 75.89%, a substantial jump from the 60s range seen in competing systems.

Figure 1: Examples of Text Flow detection results across various scripts, fonts, and environmental contexts.

The system also demonstrated strong performance on multilingual data, proving its script-agnostic nature. Efficiency-wise, the system processed images in approximately 1.4 seconds on average, maintaining competitiveness with other high-performing methods of that era.

Discussion and Conclusion

The success of Text Flow lies in its shift from local, heuristic-based decisions to global optimization. By avoiding "hard" decisions early in the pipeline, the system maintains a higher recall and handles complex scripts more effectively than stroke-based methods.

While powerful, challenges remain in handling extremely stylized handwriting, vertical text, and highly cluttered backgrounds. Future work may involve moving toward a fully end-to-end deep learning architecture that generates the flow network directly from raw pixels, further reducing the reliance on separate pre-processing steps.

Summary updated

BibTeX
@inproceedings{tian2015text,
  author = {Shangxuan Tian and Yifeng Pan and Chang Huang and Shijian Lu and Kai Yu and Chew Lim Tan},
  title = {{Text Flow: A Unified Text Detection System in Natural Scene Images}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2015},
  doi = {10.1109/iccv.2015.528},
}
Figure