Bu proje, oyunlardaki İngilizce altyazıları otomatik olarak gerçek zamanlı algılar, Türkçeye çevirir ve ekranınızda şeffaf şekilde gösterir. PyQt5 ile özel altyazı penceresi oluşturur.
- Windows işletim sistemi
- Python 3.10 veya 3.11
- Tesseract OCR
- DeepL API Anahtarı
git clone git@github.com:Roalexx/subtittle.git
cd subtittlepython -m venv venvWindows:
venv\Scripts\activateMac/Linux:
source venv/bin/activatepip install -r requirements.txt- Tesseract Setup (Windows)
- Kurulumdan sonra şu yola dikkat et:
C:\Program Files\Tesseract-OCR\tesseract.exe
- DeepL Developer Portal sayfasına gidin
- Ücretsiz API anahtarınızı alın
- Proje dizinine
.envdosyası oluşturun:
DEEPL_API_KEY=buraya_senin_anahtarınpython main.pyAçılan pencereden:
- Renk, boyut ve opaklık ayarlarını yap
- “Başlat” butonuna bas
- OCR bölgesini seç
- Altyazının gösterileceği noktayı seç
Hepsi bu 🎉
pip install pyinstallerpyinstaller --noconsole --onefile --add-data ".env;." main.pydist/main.exe dosyasını çift tıklayarak çalıştırabilirsin.
- Çoklu monitör desteklenir, OCR seçim ekranı ikinci monitörde de çalışır.
- Alt yazılar 10 saniye boyunca gösterilir ve sonra otomatik kapanır.
Her türlü katkıya ve geri bildirime açığız.
Sorular için GitHub Issues kısmını kullanabilirsin.
Hazırlayan: Roalexx
Proje: Subtitle Real-time Translation Overlay
🎮 Subtitle Translator (Real-Time Game Subtitle Translation)
This project automatically detects English subtitles in games in real time, translates them into Turkish, and displays them transparently on your screen. It uses PyQt5 to create a custom subtitle window.
🧰 Requirements
- Windows operating system
- Python 3.10 or 3.11
- Tesseract OCR
- DeepL API Key
🚀 Installation & Run
- Clone the Project
git clone git@github.com:Roalexx/subtittle.git cd subtittle
- Create a Virtual Environment
python -m venv venv
- Activate the Environment
Windows: venv\Scripts\activate
Mac/Linux: source venv/bin/activate
- Install Requirements
pip install -r requirements.txt
🧠 Additional Setup
🔤 Tesseract OCR Installation
- Go to https://github.com/tesseract-ocr/tesseract/wiki
- After installation, note this path: C:\Program Files\Tesseract-OCR\tesseract.exe
🔑 DeepL API Key
- Visit https://www.deepl.com/pro#developer
- Get your free API key
- Create a .env file in the project root:
DEEPL_API_KEY=your_api_key_here
python main.py
In the window that opens:
- Adjust color, size, and opacity
- Click the “Start” button
- Select the OCR region
- Select where to show the subtitle
That's it 🎉
📦 Build as Executable (.exe)
- Install PyInstaller
pip install pyinstaller
- Build
pyinstaller --noconsole --onefile --add-data ".env;." main.py
- Run
Double-click dist/main.exe to run the app.
📝 Notes
- Multi-monitor setup is supported. OCR selection works on the second monitor as well.
- Subtitles are shown for 10 seconds and then automatically disappear.
📬 Questions / Contributions
We welcome all kinds of contributions and feedback. For questions, use the GitHub Issues section.
Created by: Roalexx Project: Subtitle Real-time Translation Overlay