Skip to content

Kuju29/TextPhantomOCR_Overlay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

162 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Sponsors

Note: หลายเว็บยังไม่รองรับ และ prompt ai ผมยังทำไม่ค่อยดี อัพให้ใช้กันไปก่อนผมจะได้เห็นปัญหาและแก้ไขไปด้วยครับ ทดสอบจากผู้ใช้จริงมันง่ายกว่าทดสอบเองครับ 555 ตอนนี้มีแค่ตัวเลือก Ai ที่ต้องเสียเงินเองนะส่วนอื่นฟรีหมดครับโผมมมม
Note2: ส่วนขยายนี้เป็นแค่การอัพโหลดไปที่ google translate image เพื่อให้มันแปลภาพให้ครับ มันเลยแปลได้ตรงตัวเหมือนที่เราแปลภาพใน translate ปกติ ยกเว้นหมวด AI ที่เป็นการดึงข้อมูล ocr มาให้ Ai แปลและแปะกลับที่ผมทำขึ้นมาเองครับ ถึงแม้ว่าจะมีที่ดีกว่านี้คือ "manga-image-translator" ซึ่งมันจะดีกว่าของผมตรงที่องศาของภาษาที่แปลถูกหมุนให้ถูกต้องและแบ่งข้อความได้ดีแต่ข้อเสียคือมันช้าครับ ในอนาคตจะพยายามเลียนแบบการทำงานอยู่ครับ

Desktop2026 02 06-08 11 52 01-ezgif com-video-to-gif-converter

✨ TextPhantomOCR Overlay

Installation Run API Online

📥 Download & Install Options

Version Extension Download API Download Note
Chrome Web Store Install Extension Run API from Hugging Face Easiest option, but still requires API
v3.0.0 Install Extension Run API from Hugging Face Manual install
v2.0.2 Install Extension Download API Manual install
v1.0.1 Install Extension Download API Manual install

🧩 1. Extension Installation

Option – Chrome Web Store

  1. Install from Chrome Web Store.

Option – Manual Install

  1. Download and extract the Source Code for your version.
  2. Open Chrome → Go to chrome://extensions/.
  3. Enable Developer Mode (top right).
  4. Click Load unpacked.
  5. Select the extracted folder.

🌐 2. Using the API on Hugging Face (Run API for v3.0.0)

  1. Go to: https://huggingface.co/spaces/plan291037/TextPhantom_OCR_API2/tree/main
  2. Click the three dots in the top-right and select Duplicate this Space.
  3. The build will start automatically — wait until you see Running.
  4. Click the three dots again and choose Embed this Space.
  5. Copy the link and use it in your API extension.

Notes:

  • If unused, the Space will shut down automatically within 48 hours.
  • To stop it manually, go to Settings and click the small Pause Space link.
  • This API works only in images mode.

🖱️ 3. Getting Started with the Extension

  • Navigate to the page you want to translate.
  • Right-click anywhere → choose 🔍 Translate... from the context menu.

🤖 Free AI Option (Hugging Face – Google Gemma)

TextPhantom can use Google Gemma models via Hugging Face.
This option is free to start (you use your own Hugging Face API key).

Step 1: Enable Access to Gemma Model

Google Gemma models require accepting a license before use.

  1. Log in to Hugging Face
    https://huggingface.co/login

  2. Open the model page
    https://huggingface.co/google/gemma-3-27b-it

  3. Click “Agree and access” (or “Request access”)

  4. Wait for approval (usually a few minutes)

You only need to do this once per account.

Step 2: Create a Hugging Face API Key

This API key will be used by TextPhantom to call the AI model.

  1. Go to
    https://huggingface.co/settings/tokens

  2. Click New token

  3. Set:

    • Name: textphantom-ai
    • Role: Read
  4. Create the token and copy it

  5. Required Token Permissions When creating your Hugging Face API key, make sure the following permissions are enabled:

  • Read access to contents of all public gated repos you can access
    Required to use gated models such as Google Gemma.

🖼️ DEMO / UI PREVIEW

UI Preview

UI Preview

Example 1

Example 2

Example 3

About

🧠 A Chrome extension that instantly translate text from images right inside your browser! Perfect for manga, webtoons, and any image-based content.

Topics

Resources

Stars

Watchers

Forks

Packages