Towards Scene-Text to Scene-Text Translation

Onkar Susladkar, Prajwal Gatti, Anand Mishra · DOI

Introduction

Translating text within images—known as "Visual Translation"—presents a unique challenge that extends beyond traditional machine translation. While standard tools can translate text, they often overlay plain results on top of the original image, creating a jarring visual experience that loses the context of the original design. This paper introduces a comprehensive framework for "Scene-Text to Scene-Text Translation," focusing on translating text while preserving its original visual style, font, and background.

A source image featuring English scene text for the Rithala metro station.

To address this, the authors establish a baseline for English-Hindi translation, a pair with significant linguistic and stylistic differences. The goal is to move from simple text replacement to a seamless visual transformation where the translated text appears as if it were part of the original scene.

The Visual Translation Pipeline

The authors identify that a successful visual translation system must solve four distinct sub-problems:

  1. Recognition: Accurately detecting and identifying the source text.
  2. Translation: Converting the source language to the target, often requiring a choice between literal translation and phonetic transliteration (e.g., keeping a station name like "Rithala" phonetically consistent).
  3. Synthesis: Rendering the new text to match the original font, size, and orientation.
  4. Inpainting: Seamlessly erasing the old text and filling the background.

Rather than an end-to-end model, the paper proposes a cascaded framework. This modularity allows for the integration of state-of-the-art components: DBNet and ParSeq for recognition, and specialized models like IndicTrans2 for translation, which outperformed general-purpose models in handling the nuances of Indian languages.

SRNet++: Decoupling Synthesis

The core innovation of this work is SRNet++, a synthesis engine designed to avoid the "patchy" or "ghosted" results common in previous text-editing models. SRNet++ decouples the synthesis process into two primary streams:

  • Background Generation: Utilizing a diffusion-based ControlNet, the model erases the original text and intelligently "fills in" the background.
  • Foreground Generation: A modified architecture renders the translated text onto a clean mask.

These streams are blended using Otsu’s method to ensure clean edges and high perceptual quality. This approach allows the model to handle translated text of varying lengths without distorting the surrounding image.

The final translated output in Hindi, demonstrating the preservation of font style and background consistency.

Datasets and Evaluation

To support this research, the authors released two new datasets:

  • VT-Syn: A massive synthetic dataset of 600,000 paired images with diverse fonts and backgrounds for training.
  • VT-Real: A benchmark of 269 real-world images with 1,021 words, manually annotated by human translators to provide a reliable ground truth.

Evaluation in this domain requires more than just linguistic accuracy. The authors proposed a VT-score, which combines standard translation metrics (like BLEU) with a "Perception Quality" score to account for the visual fidelity of the output.

Results and Future Directions

The best-performing model variant, B-7, which combines IndicTrans2 with the SRNet++ synthesis engine and paragraph-level translation grouping, achieved a BLEU-1 score of 25.28 on English-to-Hindi tasks. User studies confirmed that this approach significantly improved readability and perceptual quality over existing baselines.

Future work remains in handling curved or occluded text and improving the sharpness of re-inserted text in high-resolution scenes. However, this framework provides a robust foundation for the next generation of augmented reality and travel applications, effectively bridging the gap between computer vision and graphic synthesis.

Summary updated

BibTeX
@misc{susladkar2023towards,
  author = {Onkar Susladkar and Prajwal Gatti and Anand Mishra},
  title = {{Towards Scene-Text to Scene-Text Translation}},
  year = {2023},
  eprint = {2308.03024},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.03024},
}
Figure