Scene Text Recognition with Image-Text Matching-Guided Dictionary

Jiajun Wei, Hongjian Zhan, Xiao Tu, Yue Lu, Umapada Pal

Introduction

Scene Text Recognition (STR)—the process of transcribing text from natural environments like street signs and advertisements—remains a significant challenge in computer vision. Despite the success of deep learning models, issues such as motion blur, perspective distortion, and unusual fonts often lead to recognition errors. To mitigate these, researchers frequently employ a dictionary (lexicon) to post-process and correct model outputs. However, traditional dictionary-guided methods often operate in a vacuum, ignoring the original visual evidence during the correction phase. This paper introduces a Scene Image-Text Matching (SITM) network that treats dictionary correction as a multi-modal alignment task, significantly improving recognition accuracy.

The Limitations of Traditional Lexicon Correction

Standard STR systems typically use a dictionary to find the word with the smallest "edit distance" to the model's initial prediction. This approach suffers from two primary flaws:

  1. Blind Rectification: By relying solely on string similarity, the system ignores the original image. If a model predicts "tirelness" and the dictionary contains both "tireless" and "tiredness," a standard system lacks the visual context to determine which word actually matches the image.
  2. The Out-of-Vocabulary (OOV) Trap: If a model correctly predicts a word that is not present in its dictionary, a traditional system may erroneously "correct" it to a similar-looking word that is in the dictionary, introducing an error where there was none.

Methodology: Scene Image-Text Matching (SITM)

The proposed SITM framework addresses these issues by re-introducing the image into the decision-making process through a "forward-forward" inference procedure.

Two-Stage Inference

The recognition process is divided into two distinct stages:

  • Stage 1: Initial Prediction: The STR model generates a raw visual prediction from the input image.
  • Stage 2: SITM-Guided Refinement: The system retrieves the top $N$ candidates from a dictionary based on edit distance. Crucially, the initial prediction from Stage 1 is added to this candidate set. The SITM network then uses Image-Text Contrastive (ITC) learning to compare the original image features against the text features of all candidates. The candidate with the highest visual-textual similarity is selected as the final output.

Training with Resemblant Words

To ensure the model can distinguish between very similar words, the authors developed a strategy to generate "hard negatives" during training. Instead of using random words, they created "resemblant words" by swapping characters with visually similar ones (e.g., replacing 'a' with 'o'). This forces the SITM module to learn fine-grained visual differences, such as the subtle distinction between "tiredness" and "tireqness."

Experimental Results

The model was trained on standard synthetic datasets (SynthText and MJSynth) and evaluated across six major benchmarks, including regular text (IIIT5K, SVT, IC13) and irregular text (IC15, SVTP, CUTE80).

Performance Highlights

  • Accuracy Boost: The SITM-guided approach achieved an average accuracy of 93.8%, a +1.7% improvement over traditional dictionary guidance (92.1%).
  • Irregular Text Mastery: The gains were most pronounced on difficult datasets like CUTE80 (curved text), where accuracy jumped by 2.6%.
  • State-of-the-Art Integration: When combined with the high-performing ABINet architecture, the method established new state-of-the-art results, hitting 98.4% on IC13 and 91.3% on CUTE80.

Discussion and Future Work

The core innovation of this work is the "look-back" mechanism. By re-evaluating dictionary candidates against the original image features, the model acts more like a human reader who double-checks a sign when a word seems ambiguous. Furthermore, including the raw visual prediction in the candidate set provides a vital safety net against the "OOV trap."

While the two-stage inference adds some computational overhead, the significant gains in accuracy—particularly for irregular and distorted text—demonstrate the value of image-guided dictionary correction. Future research may focus on reducing latency for real-time applications and refining the generation of hard negatives using generative models.

Summary updated

BibTeX
@inproceedings{wei2023scene,
  author = {Jiajun Wei and Hongjian Zhan and Xiao Tu and Yue Lu and Umapada Pal},
  title = {{Scene Text Recognition with Image-Text Matching-Guided Dictionary}},
  booktitle = {ICDAR},
  year = {2023},
  doi = {10.1007/978-3-031-41731-3\_4},
}
Figure