ciddwd/overlay-translator
No-root Android overlay translator with modular OCR and bilingual playback subtitles
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Overlay Translator is a Kotlin Android app built around a configurable pipeline: capture a screen region, recognize text, translate the resulting blocks, and render them in place or in a separate overlay. The Gradle tree separates app/ and llama-android/; the local GGUF path uses llama.cpp, with JNI-backed batching for supported translation models and per-block fallback. The Manga OCR path uses ONNX recognition with a shared DBNet detector, while OCR orientation and reading order can feed directly into overlay layout.
Backend selection is independent across stages. OCR can run on-device, over a LAN HTTP endpoint such as Umi-OCR or LunaTranslator, or through a cloud provider; recognized text can go to ML Kit, a local GGUF model, machine translation, or an OpenAI- or Anthropic-compatible service. Optional TTS can use a different backend again. Playback translation takes a separate capture path: audio becomes a transcript through local or online speech recognition, then passes through the selected translator into a bilingual overlay.
Key Capabilities & Differentiators
The app addresses text that other Android apps render but do not expose for selection. Full-screen and region modes handle one-off requests; stable-frame mode waits for the image to stop changing before translating again. Manga processing handles vertical reading order and furigana, and can replace text inside detected bubbles with rectangular fallback. A lockable floating window keeps translation away from game controls when in-place overlays get in the way. Background album jobs reuse presets and can save translated images with supported layouts.
The local translation options range from downloaded ML Kit language packs to Sakura for Japanese → Simplified Chinese, multilingual specialists such as Hy-MT2 and Index-Translate, and imported GGUF models. Glossaries can be scoped by app; app-name and glossary context are supported by local LLMs and OpenAI- or Anthropic-compatible services, not ordinary machine translation engines. For video and game dialogue, the initial playback-translation feature uses SenseVoice, Zipformer, Whisper, or online recognition and does not require an existing subtitle track.
Trade-offs & Limitations
The most useful sizing data comes from a Debug build on a Snapdragon 8 Gen 3 phone with 16 GB RAM, not from a general device requirement. On one Japanese manga image, PP-OCRv6 Small in speed mode took 0.84 s for recognition and 2.51 s for the measured full OCR-side pipeline, versus 5.54 s and 6.45 s for Manga OCR, which produced more complete vertical bubbles. On a separate 12-segment Japanese-to-Simplified-Chinese translation run, ML Kit completed in 2.68 s versus Sakura's 7.15 s; those translation timings exclude OCR and Sakura's separate 3.66 s warm-up. Sakura produced stronger Chinese on that sample. These results support testing on representative pages rather than assuming a larger model or accuracy mode will always help.
Compared with built-in translation or an existing subtitle track, the overlay adds coverage for content rendered into pixels or audio, but also adds permissions, recognition errors and delay. Cloud backends may help where local engines struggle, but can send screenshots, audio, or text off-device and incur fees. LAN hosting moves processing off the phone without resorting to a public provider, but adds a service to operate. For local GGUF, file size is not working memory: context and runtime buffers compete with the game or reader. CPU is the primary path; experimental Vulkan should be tested on the actual handset rather than assumed to improve it.
Hardware & Deployment Guide
Install the release APK on an arm64-v8a Android 8.0+ device; published builds do not cover 32-bit ARM or x86. A companion .sha256 file is available for integrity checks. Set up overlay and notification permissions, then start the capture service. System capture asks for screen-sharing consent; Shizuku and root require their own authorization, and Accessibility capture requires Android 11+. Playback translation requires Android 10+, recording and screen-sharing permissions, and a player that permits audio capture. It captures playback, not microphone input.
For offline operation, prepare the chosen OCR and translation assets and, if needed, speech models or an offline system voice. Local LLM weights are separate from the APK. For a self-hosted or mixed deployment, configure the compatible endpoints individually; public endpoints require HTTPS by default. Re-enter credentials and restore local models and per-model tuning after moving an .otsettings profile. The v0.4.7 release added stable-frame and input translation; v0.4.8 added playback subtitles, gesture shortcuts, a quick panel, and dedicated local-model management.
Android gamers, manga readers, and visual-novel players who need to translate text they cannot select and want to choose which stages stay on-device or run on their own server.
Built-in translation already covers your content, your device cannot run the published APK, or you need predictable low-latency subtitles from a player that blocks audio capture.
Quick Start & Installation
git checkout -b feat/your-idea origin/main
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| overlay-translator ★ | 1.5k | +57 | Kotlin | Apache-2.0 | No-root Android overlay translator with modular OCR and bilingual playback subti |
| ComfyUI | 149.9k | +945 | Python | GPL-3.0 | A node-graph engine for building and running multimodal AI workflows locally |
| stable-diffusion-webui | 165.4k | +65 | Python | AGPL-3.0 | Gradio WebUI for local Stable Diffusion generation, editing, and parameter sweep |
| InvokeAI | 29.2k | +65 | TypeScript | Apache-2.0 | Self-hosted canvas and node workflows for AI image generation and editing |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/ciddwd/overlay-translator.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about overlay-translator
Can I run OCR on a PC and keep translation on the phone?
Do I need a 16 GB phone or a Vulkan-capable GPU?
Does Apache-2.0 cover a commercial or self-hosted deployment end to end?
When is this a better fit than built-in translation or subtitles?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy