| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Real-time OCR-powered game dialog translator for Windows — reads text from any screen region and displays the translation in a draggable overlay above your game.
TÜRKÇE BİLGİLENDİRME README TR.
| Dependency | Notes |
|---|---|
| Python 3.9+ | |
| Tesseract OCR | Install to C:\Program Files\Tesseract-OCR\ |
| Pillow | pip install pillow |
| pytesseract | pip install pytesseract |
| PySide6 | pip install PySide6 |
| mss (optional) | Faster multi-monitor capture — pip install mss |
| keyboard (optional) | Global hotkeys — pip install keyboard |
| pywin32 (optional) | Auto-pause feature — pip install pywin32 |
Install all at once:
pip install pillow pytesseract PySide6 mss keyboard pywin32Tesseract language packs — during Tesseract installation, select the languages you need (eng, tur, jpn, kor, etc.). If a pack is missing, the app falls back to eng and logs a warning.
git clone https://github.com/bnsware/SubLens.git
cd SubLens
pip install pillow pytesseract PySide6 mss keyboard pywin32
python sublens.py| Key | Action |
|---|---|
| F2 | Select screen region |
| F3 | Translate once |
| F4 | Start / stop continuous scan |
| ESC | Hide overlay / cancel region selection |
| Ctrl+Alt+R | Select region (global) |
| Ctrl+Alt+T | Translate once (global) |
| Ctrl+Alt+G | Toggle scan (global) |
| Ctrl+Alt+H | Hide overlay (global) |
In Settings → Game Context, you can provide a hint to guide the translation tone:
Example: Wild West, 1899, cowboy dialogue
DeepL and Google ignore this field.
In Settings → Glossary, add one entry per line:
Arthur=Arthur RedDead Guarma=Guarma
| Symptom | Solution |
|---|---|
| "Tesseract language pack not found" | Add the .traineddata file for the required language to the Tesseract folder |
| OCR returns empty text | Tighten the region, increase scale, or manually select OCR mode |
| Google engine errors | Temporarily switch to DeepL or LM Studio — Google may be rate-limiting your IP |
| Overlay appears in the wrong position | Click and drag it; position persists until the next launch |
| LM Studio not connecting | Ensure Local Server is running in LM Studio and the URL is correct |
| Low FPS while translating | Increase the scan interval, or switch to DeepL/Google |
%APPDATA%\SubLens\config.json — loaded on startup, saved on exit. Safe to edit manually; delete it to reset all settings.
python _build.pyThe resulting SubLens.exe is placed in the dist/ folder. Tesseract is bundled inside the executable — no separate installation needed on the target machine.
SubLens/ ├── sublens.py # Main application (PySide6) ├── _build.py # PyInstaller build script ├── SubLens.spec # PyInstaller spec file ├── SubLens.ico # Application icon ├── READMEapp.md # In-app help document ├── sublens.bat # Run helper (bat) └── calistir.bat # Alternative launcher
This project is released under the MIT License. See LICENSE for details.
| Back | FazBrowse Home | New Git URL |