Abstract
Texts in natural scenes carry rich semantic information, which can be used to assist a wide range of applications, such as object recognition, image/video retrieval, mapping/navigation, and human computer interaction. However, most existing systems are designed to detect and recognize horizontal (or near-horizontal) texts. Due to the increasing popularity of mobile-computing devices and applications, detecting texts of varying orientations from natural images under less controlled conditions has become an important but challenging task. In this paper, we propose a new algorithm to detect texts of varying orientations. Our algorithm is based on a two-level classification scheme and two sets of features specially designed for capturing the intrinsic characteristics of texts. To better evaluate the proposed method and compare it with the competing algorithms, we generate a comprehensive dataset with various types of texts in diverse real-world scenes. We also propose a new evaluation protocol, which is more suitable for benchmarking algorithms for detecting texts in varying orientations. Experiments on benchmark datasets demonstrate that our system compares favorably with the state-of-the-art algorithms when handling horizontal texts and achieves significantly enhanced performance on variant texts in complex natural scenes.
Introduction
Most classical text detection systems suffer from a significant "horizontal bias." These systems typically rely on features like horizontal spatial variance or axis-aligned bounding boxes. While effective for scanned documents, these methods often fail in natural scenes where text appears on billboards, signs, and products at varying angles, curvatures, and scales. Furthermore, complex backgrounds—such as brick walls or fences—frequently contain repetitive patterns that mimic text, leading to high false-positive rates. This research addresses these challenges by treating orientation as a variable rather than a constant, enabling reliable text spotting in complex, real-world environments.
Methodology
The proposed system utilizes a four-stage, bottom-up pipeline designed for robustness against rotation and background noise:
- Component Extraction: The Stroke Width Transform (SWT) is employed to identify pixels likely belonging to a text stroke. These pixels are then grouped into connected components representing potential characters.
- Component Analysis: To filter non-text blobs, a Random Forest classifier is used. The core innovation here is a set of rotation-invariant features. Instead of standard descriptors, the system estimates the major orientation of each component and normalizes feature extraction relative to that axis. Scalable rotative descriptors, inspired by Shape Context, capture the geometric essence of characters regardless of their tilt.
- Candidate Linking: Individual characters are grouped into "chains" (words or lines) based on similarity in color, size, and stroke width. Unlike traditional methods restricted to horizontal neighbors, this system allows for linking in any direction.
- Chain Analysis: A second Random Forest classifier evaluates the entire chain. It examines group-level features such as spacing consistency, the "turning angle" between characters, and color self-similarity to prune away non-text groupings like rows of windows or fences.
Datasets and Evaluation
The study utilizes several key benchmarks, including ICDAR 2003/2005/2011 and the Oriented Scene Text Database (OSTD). A major contribution of this work is the introduction of the MSRA-TD500 dataset, which contains 500 natural images featuring multi-oriented, multilingual (Chinese and English) text in complex backgrounds.
Additionally, the authors identified that standard evaluation protocols using axis-aligned boxes unfairly penalize diagonal text detection. They proposed a new protocol using minimum area rectangles and an "elastic" matching mechanism that accounts for difficult, blurry, or occluded text without skewing performance metrics.
Results and Discussion
The proposed system demonstrated a dramatic improvement over existing state-of-the-art (SOTA) methods for non-horizontal text. On the MSRA-TD500 dataset, the system achieved an F-measure of approximately 0.60, more than doubling the performance of the closest competitor at the time (~0.25).
Importantly, this gain in multi-oriented detection did not come at the expense of standard performance; on the ICDAR 2005 dataset, the system remained competitive with a 0.66 F-measure. The focus on stroke geometry rather than specific character shapes also ensures robustness across different scripts, including Arabic, Chinese, and Greek, without requiring script-specific retraining.
Conclusion
While representing a significant advancement, the system faces challenges regarding processing speed, currently averaging 7.2 seconds per image. Future work will focus on optimizing performance for real-time mobile applications and integrating rotation-invariant features directly into the OCR stage for a fully orientation-agnostic end-to-end system.
Summary updated