TL;DR
This paper introduces a novel method for identifying the script of text in natural scene images, combining convolutional features with a Naive-Bayes Nearest Neighbor classifier. They also release a new benchmark dataset, "MLe2e," to facilitate research in multi-lingual scene text understanding, demonstrating state-of-the-art performance on this challenging task.
What Problem Does This Paper Address?
Modern OCR systems are increasingly expected to handle text in diverse environments, including natural scenes with varying lighting, perspectives, and fonts. A crucial step for multi-lingual text understanding is script identification – knowing what script a piece of text is written in. While script identification is well-studied for scanned documents, it's a relatively unexplored area for scene text. Scene text presents unique challenges: it's often short, highly variable, and can appear in complex backgrounds. Existing systems often assume a single script or require manual input, limiting their applicability in real-world, multi-lingual scenarios. This paper aims to bridge this gap by developing a robust script identification method specifically for unconstrained scene text.
Methods
The core of the proposed method lies in a "fine-grained" approach to script identification. Instead of analyzing the entire text line as a whole, they break it down into smaller "stroke-parts" (image patches).
- Convolutional Features for Stroke-Parts: Each extracted stroke-part is fed into a single-layer Convolutional Neural Network (CNN). This CNN, trained using K-means on pre-processed patches, learns to extract discriminative features that capture the essence of small textual components. The key here is that they don't aim to represent the entire text line with a single feature vector, but rather to get rich representations for these small parts.
- Naive-Bayes Nearest Neighbor (NBNN) Classifier: The extracted convolutional features from all stroke-parts within a text line are then used with a Naive-Bayes Nearest Neighbor (NBNN) classifier. This classifier is chosen because it directly computes "Image-to-Class" (I2C) distances without intermediate quantization, preserving the discriminative power of the features. It compares the stroke-part features of an input text line against templates learned from training data for each script.
- Weighted Stroke-Part Templates: A novel aspect is the introduction of a weighting mechanism for the stroke-part templates within the NBNN classifier. This weighting assigns importance to templates based on their discriminative power against other scripts, aiming to improve accuracy by focusing on the most distinguishing features.
Datasets
- CVSI-2015: A dataset of pre-segmented video words in ten scripts, primarily featuring overlaid text. Used for evaluation and cross-domain experiments.
- MLe2e (Multi-lingual End-to-end Scene Text): A newly introduced benchmark dataset specifically for evaluating end-to-end scene text reading systems, including text detection, script identification, and text recognition. It comprises 711 scene images covering four scripts (Latin, Chinese, Kannada, and Hangul) and a wide variety of scene text characteristics. This dataset was created by revising and homogenizing existing scene text datasets.
Key Insights and Ideas
- Fine-grained analysis is key for scene text: Breaking down text into small "stroke-parts" and analyzing their features is more effective for script identification in variable scene text than treating the whole text line as a single unit.
- NBNN's suitability for diverse classes: The NBNN classifier is well-suited for this task because it handles large class diversity and avoids information loss through quantization, which is crucial when dealing with subtle script differences.
- Weighting discriminative parts improves performance: Explicitly weighting stroke-part templates based on their ability to discriminate between scripts significantly boosts accuracy, especially on more challenging datasets.
- Scene text is a richer domain for learning generalizable features: Features learned from the diverse "MLe2e" dataset generalize better to other scene text and even overlaid text datasets compared to features learned solely from overlaid text.
Key Results
- The proposed method achieves state-of-the-art results on the new MLe2e dataset for script identification.
- On the CVSI-2015 dataset, their method (with an 8-pixel step) achieved 97.91% accuracy, placing it second only to Google's method (98.91%) which used extensive data augmentation and a deep CNN.
- The weighted NBNN approach showed a significant accuracy improvement on the MLe2e dataset, particularly with larger stroke-part extraction steps.
- Cross-domain experiments demonstrated that templates learned from the MLe2e dataset generalize well to other scene text datasets (achieving ~95% accuracy on an English-only dataset) and perform acceptably on overlaid text datasets.
Limitations and Future Work
- Misclassifications: The paper acknowledges that misclassifications occur with low-contrast images, rare font types, degraded text, and when text is mixed with numerals (as shown in Figure 5).
- Dataset Size and Script Coverage: While MLe2e is a valuable contribution, future work could involve expanding the dataset to include more scripts and a larger number of images to further improve generalization.
- Integration with Text Detection: The paper suggests that script identification can potentially inform and improve text localization processes, hinting at future work in jointly optimizing these stages.
- Computational Cost: While the method is described as having a "shallower design" compared to deep CNNs, the dense extraction of stroke-parts and NBNN searches can still be computationally intensive. Future work might explore optimizations for speed.
Summary updated