Text Detection Based On Discriminative Dictionary Learning

Chong-Ming Zhao, Zhenfeng Zhu, Yao ZhaoJ. Inf. Hiding Multim. Signal Process 2016

TL;DR

This paper introduces a novel text detection framework that enhances sparse representation by "pruning" the dictionary used for classification. By removing non-representative "atoms" from the dictionary based on information entropy and reconstruction error, the authors create a more discriminative classifier (dSRC) that effectively distinguishes natural scene text from complex backgrounds.

Problem Statement: Text in the Wild

Detecting text in natural scenes—such as street signs, billboards, or product labels—is notoriously difficult due to extreme variations in font, size, orientation, and lighting. Furthermore, natural backgrounds are often "cluttered" with textures that mimic text (e.g., fences, bricks, or foliage), leading to high false-alarm rates.

Examples of text (a) and non-text (b) training samples used to build the discriminative dictionaries.

While Dictionary Learning—a method where data is represented as a sparse combination of basic elements called "atoms"—has shown promise in image analysis, standard versions like K-SVD are designed for data reconstruction rather than classification. This means they often fail to distinguish between text and text-like background noise. The authors aim to bridge this gap by making the dictionary itself more "discriminative."

Proposed Methodology

The authors propose a multi-stage pipeline that combines classic computer vision techniques with a novel learning algorithm. The overall architecture is divided into a training stage for dictionary construction and a testing stage for real-time detection.

The proposed text detection framework, illustrating the training stage (dictionary learning and atom reduction) and the testing stage (candidate extraction, classification, and post-processing).

1. Candidate Generation (MSER)

To avoid scanning every pixel, the system uses Maximally Stable Extremal Regions (MSER) to quickly find "blobs" in the image that might be characters.

2. Feature Extraction

For each candidate region, Histogram of Oriented Gradients (HoG) features are extracted. These features are robust to changes in lighting and small distortions, providing a stable representation for the classifier.

3. Discriminative Dictionary Learning (DDL) & Atom Reduction

This is the core innovation. The process involves:

  • Initial Training: A standard dictionary is first trained using the K-SVD algorithm.
  • Atom Evaluation: Each "atom" in the dictionary is evaluated using two metrics: Information Entropy (measuring how consistently an atom is used across the training set) and Reconstruction Residual (measuring the error increase if that atom is removed).
  • Pruning: By combining these metrics, "non-representative" atoms are identified and removed, leaving a leaner, more powerful dictionary.

4. Classification (dSRC)

The pruned dictionary is utilized in a discriminative Sparse Representation Classifier (dSRC) to verify if a candidate region is actually text. This "less is more" approach in the feature space prevents overfitting and improves the distinction between text and background noise.

5. Post-processing

Finally, heuristic geometric rules group individual characters into text blocks. Horizontal and vertical projections are then applied for precise word segmentation.

Datasets and Evaluation

The researchers evaluated their method using the ICDAR 2003 Robust Reading Competition dataset, a standard benchmark containing 509 color images.

  • Training: A subset of 7,000 text images and 10,000 non-text images was used to build the initial dictionaries.
  • Testing: The remaining images were used to calculate precision, recall, and F-measure.

Key Results

The proposed method was compared against several established algorithms:

  • Superior Accuracy: The dSRC method achieved an F-measure of 0.60, outperforming other methods like Li [18] (0.59) and Neumann [5] (0.57).
  • High Precision: It specifically excelled in Precision (0.64), suggesting that the atom reduction technique is highly effective at reducing false positives.
  • Optimal Sparsity: A sparsity factor of $L=20$ provided the best balance for the classifier's performance.

Limitations and Future Work

Despite its success, the framework has some limitations:

  • Heuristic Dependency: The post-processing stage relies on specific thresholds for height, area, color, and proximity, which may require significant tuning for different environments.
  • Computational Overhead: Sparse representation and dictionary learning are generally more computationally intensive than modern end-to-end Deep Learning approaches.
  • Complex Layouts: The current focus is on horizontal text; future work must address multi-oriented or curved text common in more recent datasets.

Summary updated

BibTeX
@article{zhao2016text,
  author = {Chong-Ming Zhao and Zhenfeng Zhu and Yao Zhao},
  title = {{Text Detection Based On Discriminative Dictionary Learning}},
  journal = {J. Inf. Hiding Multim. Signal Process.},
  year = {2016},
}
Figure