whatisgithub

What is inpainttranslator-edge-chrome?

vverity/inpainttranslator-edge-chrome — explained in plain English

Analysis updated 2026-05-18

67JavaScriptAudience · vibe coderComplexity · 3/5LicenseSetup · moderate

In one sentence

A Chrome/Edge browser extension that finds foreign text inside images and replaces it with a translated version, redrawn in place.

Mindmap

mindmap
  root((InpaintTranslator))
    What it does
      Translate text in images
      Redraw translated text in place
      Browser extension
    Tech stack
      PaddleOCR
      Ollama
      FastAPI server
    Use cases
      Translate web page images
      Read manga or manhua
      Local only OCR and translation
    Audience
      Personal use
      Vibe coders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Translate text embedded in images on any web page directly in the browser.

USE CASE 2

Read Japanese or Chinese comics with the original text replaced by a translation in place.

USE CASE 3

Run OCR and translation fully locally using PaddleOCR and Ollama instead of a cloud API.

USE CASE 4

Toggle between the original and translated image with a click or the Alt+A shortcut.

What is it built with?

JavaScriptPythonPaddleOCROllamaFastAPI

How does it compare?

vverity/inpainttranslator-edge-chromefeicaiclub/video-spec-builderpolyhelper/polyhelper
Stars676765
LanguageJavaScriptJavaScriptJavaScript
Setup difficultymoderateeasyhard
Complexity3/51/54/5
Audiencevibe codervibe coderdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires running a local Python OCR server plus a separately installed Ollama model.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

So what is it?

InpaintTranslator is a browser extension for Chrome and Edge that translates text embedded inside images on web pages. Instead of showing the original foreign-language text, it erases it and redraws the image with the translated words painted in at the same position. The README is written in Chinese. The way it works is: you hover over an image on any web page, click a small blue dot that appears, and the extension sends the image to a local server running on your own computer. That server uses PaddleOCR (a text-recognition tool) to find and read the text in the image, then passes it to Ollama (a tool for running AI language models locally) to produce the translation. The server paints the translated text back into the image at the original positions and returns the result, which the extension displays in place of the original image. Clicking again toggles back to the original. A keyboard shortcut (Alt+A) is also available to trigger the translation without using the mouse. Setting it up requires two steps. First you run the Python server locally by installing the listed packages and starting ocr_server.py, which listens on port 8000. Second you load the extension into the browser in developer mode by pointing it at the project folder. The extension settings let you change the server address and target language. The project depends on Python with paddleocr, fastapi, opencv-python, and pillow, plus Ollama installed separately with a model already downloaded. It also mentions support for the reading direction used in Japanese and Chinese comics (right-to-left, top-to-bottom). The repository is a personal-use project with an MIT license.

Copy-paste prompts

Prompt 1
Walk me through setting up the local ocr_server.py and loading this extension in developer mode.
Prompt 2
Explain how the extension sends an image to the local server and gets back a translated version.
Prompt 3
Help me change the target language and server address in the extension's settings.
Prompt 4
Show me what Python packages and Ollama model I need installed for this to work.

Frequently asked questions

What is inpainttranslator-edge-chrome?

A Chrome/Edge browser extension that finds foreign text inside images and replaces it with a translated version, redrawn in place.

What language is inpainttranslator-edge-chrome written in?

Mainly JavaScript. The stack also includes JavaScript, Python, PaddleOCR.

What license does inpainttranslator-edge-chrome use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is inpainttranslator-edge-chrome to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is inpainttranslator-edge-chrome for?

Mainly vibe coder.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.