A Fine-Grained Approach to Scene Text Script Identification

Lluís Gómez i Bigorda, Dimosthenis Karatzas

Abstract

Identifying the script of text in natural scenes is a fundamental prerequisite for multi-lingual Optical Character Recognition (OCR). This paper presents a robust method that treats script identification as a fine-grained classification task. By extracting local "stroke-parts" and representing them with convolutional features learned via K-means clustering, the system employs a Naive-Bayes Nearest Neighbor (NBNN) classifier to achieve high accuracy on challenging scene text and video datasets.

Introduction

In Computer Vision, reading text in natural scenes—such as street signs or storefronts—is a multi-step challenge. Before a system can "read" characters, it must identify the script. While script identification is largely solved for scanned documents, "scene text" presents significant hurdles: perspective distortion, uneven lighting, artistic fonts, and extremely short text passages. Most OCR systems are language-specific; identifying the script is thus critical for automatic text understanding in multi-lingual environments.

Methodology: The Bag-of-Stroke-Parts

The researchers developed a pipeline based on a "bag-of-stroke-parts" philosophy, focusing on the discriminative power of tiny fragments rather than whole words.

The proposed pipeline for script identification using stroke-part extraction and NBNN classification.
  1. Stroke-Part Extraction: Text lines are resized to a fixed height, and small $32 \times 32$ pixel patches (stroke-parts) are extracted using a sliding window.
  2. Convolutional Features: Each patch is processed by a single-layer Convolutional Neural Network (CNN). The filters are learned using K-means clustering on random patches, providing a highly discriminative descriptor for each letter fragment.
  3. NBNN Classification: To avoid information loss from quantization (common in Bag-of-Visual-Words), the authors use a Naive-Bayes Nearest Neighbor (NBNN) classifier. It calculates the distance from a query patch to the nearest neighbor in each script class.
  4. Discriminative Weighting: A novel weighting scheme rewards "rare" stroke-parts specific to a single script, while down-weighting common strokes (like vertical lines) found across multiple scripts.

Key Insights: Script ID as Fine-Grained Recognition

The core argument is that script identification is a fine-grained recognition task, similar to identifying bird species. Success depends on observing tiny details—the "beaks and feathers" of characters.

Examples of discriminative stroke-parts across different scripts, highlighting the fine-grained nature of the task.

By focusing on local patches, the system becomes invariant to word length. Furthermore, by avoiding feature quantization and using raw high-dimensional distances via NBNN, the method preserves the subtle nuances necessary to distinguish scripts in low-resolution or distorted images.

Evaluation and Results

The method was evaluated on two primary benchmarks:

  • CVSI 2015: A dataset of video overlaid text (10 scripts). The method achieved 97.91% accuracy, ranking 2nd globally.
  • MLe2e (Multi-script end-to-end): A new dataset introduced by the authors containing 711 scene images across Latin, Chinese, Kannada, and Hangul scripts. The system achieved 91.12% accuracy, significantly outperforming standard baselines like SIFT + Fisher Vectors.

The training procedure is notably efficient because the CNN is shallow and filters are learned via K-means, making it faster to train than massive deep-learning architectures.

Conclusion and Future Work

While highly effective, the system faces challenges in low-contrast environments, with mixed characters (e.g., scripts mixed with Arabic numerals), and highly stylized fonts. Future work involves integrating this module into a full end-to-end "detect-identify-recognize" pipeline for real-time multi-lingual navigation.

Summary updated

BibTeX
@inproceedings{bigorda2016fine,
  author = {Lluís Gómez i Bigorda and Dimosthenis Karatzas},
  title = {{A Fine-Grained Approach to Scene Text Script Identification}},
  booktitle = {DAS},
  year = {2016},
  url = {https://openreview.net/forum?id=3_tKUIxWAP},
}
Figure