Scene Text Localization and Recognition with Oriented Stroke Detection

Lukás Neumann, Jiri MatasICCV 2013

Introduction

Reading text in natural scenes, often referred to as Photo OCR, presents significant challenges compared to traditional document scanning. Scene text is subject to extreme variations in scale, perspective, rotation, and lighting, often set against complex, cluttered backgrounds. Historically, two primary strategies have dominated the field: Sliding Windows, which are robust but computationally expensive, and Connected Components (CC), which are efficient but highly sensitive to noise and shadows.

This paper proposes a robust end-to-end system that bridges these two approaches by focusing on oriented strokes—the fundamental building blocks of characters. By detecting these strokes and analyzing their spatial relationships, the authors achieve a system that is both efficient and resilient to the "broken" characters that typically plague CC-based methods.

The Oriented Stroke Pipeline

The proposed system treats characters as collections of oriented bars. The process follows a structured pipeline from raw pixels to word recognition.

The proposed end-to-end pipeline for scene text recognition, moving from stroke detection to word-level non-maximum suppression.

Oriented Stroke Detection and Candidate Generation

Instead of searching for full character templates, the system first identifies "ridges" in the image gradient. It employs oriented bar filters (at 0°, 45°, 90°, and 135°) across multiple scales to locate potential strokes.

To maintain efficiency, the system avoids exhaustive sliding window searches. Instead, it generates candidate regions by taking the unions of nearby stroke bounding boxes. This targeted approach reduces the number of regions to evaluate by three orders of magnitude compared to standard methods.

Character Representation and Recognition

A key innovation is the 100-dimensional feature vector created from the pooled responses of these oriented strokes. This representation is inherently robust to small spatial shifts. Furthermore, because the features are tied to specific orientations, the system can handle rotated text simply by permuting the feature vector rather than requiring a separate model for every angle.

A 3D visualization of oriented stroke responses for the character 'E', illustrating how strokes are captured as primitives.

The system utilizes a simple Euclidean nearest-neighbor classifier. Remarkably, this classifier was trained entirely on synthetic data—5,580 characters from 90 standard fonts—without any added noise. The success of this approach demonstrates the inherent robustness of the oriented stroke feature descriptor in bridging the gap between clean synthetic fonts and messy real-world imagery.

Word Formation

The final stage involves grouping recognized characters into coherent lines and words. A greedy algorithm handles initial line formation, followed by a Dynamic Programming approach that incorporates a language model and geometric constraints (such as spacing and alignment) to determine the most likely word sequences.

Key Results and Performance

The method was evaluated on the ICDAR 2011 Robust Reading competition dataset, a standard benchmark for scene text. The system set new performance standards at the time of publication:

  • Localization: Achieved an F-measure of 72.3% (66.4% recall, 79.3% precision). The 66.4% recall significantly outperformed the previous state-of-the-art (62%).
  • End-to-End Recognition: Achieved an F-measure of 45.2%, a substantial improvement over previous benchmarks (e.g., 36.5% in 2012).
  • Efficiency: Despite the complexity, the Matlab implementation processed images in approximately 35 seconds on a standard PC, with clear paths for further optimization through parallelization.

Limitations and Conclusion

While the oriented stroke method is highly effective, the authors noted specific failure modes. Complex characters can sometimes be misidentified as multiple simpler characters (e.g., "D" being split). Additionally, single-stroke characters like "I" or "l" can be difficult to distinguish from background noise when they lack surrounding context. Future work aims to refine the language model and improve processing speed to address these challenges.

Summary updated

BibTeX
@inproceedings{neumann2013scene,
  author = {Lukás Neumann and Jiri Matas},
  title = {{Scene Text Localization and Recognition with Oriented Stroke Detection}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2013},
  doi = {10.1109/iccv.2013.19},
}
Figure