zyddnys/manga-image-translator

Translate manga/image 一键翻译各类图片内文字 https://cotrans.touhou.ai/ https://greasyfork.org/en/scripts/437569-cotrans-manga-image-translator-regular-edition

What it solves

Manga and other images often contain text that is difficult to understand if you do not read the original language. This tool provides a one-click way to translate that text directly on the image, so you can read the content without needing manual editing or separate translation tools. It is designed for works that are unlikely to receive professional translation, such as comics shared in chat groups or image boards.

How it works

The tool processes images through a multistep pipeline:

  • Text detection uses OCR to find regions that contain text.
  • Translation sends the extracted text to one of many supported translation services (e.g., Sugoi, Sakura, OpenAI) and gets back the translated version.
  • Image repair (inpainting) removes the original text while preserving the artwork.
  • Typesetting renders the translated text back into the cleaned regions, fitting it into the original text bubbles or areas.

It can run in batch mode to process whole folders, as a web server with a UI or an API, or as a command-line tool. The pipeline is configurable: you can choose specific detectors, translators, inpainting models, and render settings.

Who it’s for

This is built for readers, hobbyists, and developers who need reliable automatic translation of manga, comics, or any images containing text. It is especially useful for Japanese-to-English translation, but also supports Chinese, English, and over 20 other minor languages. People who want to set up their own translation service, integrate it into a project, or just translate images locally will find it helpful.

Highlights

  • Multi-language support – Primarily Japanese, but also Traditional/Simplified Chinese, English, and many others.
  • One-click operation – Automatic detection, translation, removal, and retypesetting of text.
  • Flexible interfaces – Batch mode, web UI, API, and Docker support.
  • GPU acceleration – Works with CUDA for faster processing on supported hardware.
  • Configurable pipeline – Choose among multiple translators, detectors, and inpainting models to tune quality.

Related

  • Project
  • Project
  • Project
  • Project
  • Project