Text Recognition - Real World Data and Where to Find Them

Klára Janousková, Jiri Matas, Lluís Gómez, Dimosthenis Karatzas · DOI

Abstract

We present a method for exploiting weakly annotated images to improve text extraction pipelines. The approach uses an arbitrary end-to-end text recognition system to obtain text region proposals and their, possibly erroneous, transcriptions. The proposed method includes matching of imprecise transcription to weak annotations and edit distance guided neighbourhood search. It produces nearly error-free, localised instances of scene text, which we treat as "pseudo ground truth" (PGT). We apply the method to two weakly-annotated datasets. Training with the extracted PGT consistently improves the accuracy of a state of the art recognition model, by 3.7% on average, across different benchmark datasets (image domains) and 24.5% on one of the weakly annotated datasets.

Introduction

Scene text recognition—the ability to read text in natural environments—is a cornerstone of computer vision but remains a "data-hungry" challenge. Traditional training requires massive datasets of fully annotated images, where each word is manually localized and transcribed. This process is prohibitively expensive and difficult to scale. In "Text Recognition - Real World Data and Where to Find Them," Janouskova et al. propose a method to leverage abundant, weakly annotated data to generate high-quality "Pseudo Ground Truth" (PGT), effectively turning cheap metadata into gold-standard training resources.

Album covers illustrating the variety of artistic fonts and complex backgrounds found in real-world text data.

The PGT-GEN Methodology

The core innovation is the PGT-GEN algorithm, which creates a feedback loop between an end-to-end (E2E) text recognition system and its own proposals. The process follows four key steps:

  1. Initial OCR: An E2E system (using TextSnake for detection and a BiLSTM-based model for recognition) identifies text regions and generates initial transcriptions.
  2. Matching: These transcriptions are compared against weak labels (metadata) using Levenshtein edit distance. If a guess is close to a known word, it becomes a candidate for PGT.
  3. Neighborhood Search (FindOptimalBox): If a match is imperfect, the algorithm performs an "edit distance guided neighbourhood search." It iteratively adjusts the bounding box—shifting, scaling, or shrinking—and re-runs the OCR to minimize the edit distance to the target word.
  4. Iterative Refinement: The model is re-trained on the generated PGT, improving its ability to find and transcribe text in subsequent passes. This iterative process allows the model to "teach itself" by refining its own crops.

Datasets and Evaluation

The study utilizes two primary sources of weak data to demonstrate the method's efficacy:

  • Amazon Book Covers (ABC): A newly utilized dataset of over 200,000 images. The weak labels are the titles and authors derived from product metadata. The system generated over 1.5 million PGT crops from this source.
  • Uber-Text (UT): A large-scale street-level imagery dataset. To simulate a real-world weak-label scenario, the authors ignored existing location data during PGT generation.
Examples of book covers from the Amazon Book Covers (ABC) dataset used to generate Pseudo Ground Truth.

Results and Discussion

The PGT-GEN approach yielded significant performance gains across multiple domains:

  • Benchmark Improvement: Adding PGT to the training pipeline improved accuracy across standard benchmarks (such as IIIT 5K and SVT) by an average of 3.7%.
  • Domain Adaptation: The most striking result occurred on the Uber-Text dataset, where the model achieved a 24.5% improvement in recognition accuracy compared to a baseline trained only on synthetic data.
  • Scalability: Through six iterations on the Uber-Text dataset, the system automatically mined over 113,000 high-quality text instances without human intervention.

While the method is highly effective, it remains limited by the initial detector's recall; if the detector fails to propose a region, the neighborhood search cannot initiate. Future work will focus on improving detector recall and using recognition confidence scores to filter out false positives caused by patterns like fences or bricks.

Conclusion

By utilizing the OCR engine as its own teacher, the proposed method bridges the gap between synthetic training data and the messy complexities of the real world. The ability to automatically generate millions of localized annotations from existing metadata represents a major step forward in scalable, high-accuracy text recognition.

Summary updated

BibTeX
@inproceedings{janouskova2020text,
  author = {Klára Janousková and Jiri Matas and Lluís Gómez and Dimosthenis Karatzas},
  title = {{Text Recognition - Real World Data and Where to Find Them}},
  booktitle = {ICPR},
  year = {2020},
  doi = {10.1109/icpr48806.2021.9412868},
}
Figure