Game2Text is an all-in-one application that helps you learn language from games.
- Dictionary lookup with browser dictionaries like Yomichan
- Translation - DeepL, Papago, and Google
- Create image and audio flashcards via Anki and AnkiConnect
You can find downloads on Releases.
Windows/Mac: Tesseract is bundled with the application.
Linux: Follow installation instructions here.
Update config.ini file for the following configurations:
- browser: Browser to launch Game2Text
- logimagetype: file type to save logged images
- refresh: hotkey to execute OCR
You can import and export image filter profiles to improve the accuracy of the OCR result. Image filtering controls can be accessed by right clicking on the game/video stream.
Create a venv, then once activated install requirements:
pip install -r requirements.txt
python game2text.py
Windows:
python -m eel game2text.py web --windowed --icon "icon.ico" --add-data "logs;logs/" --add-data "profiles;profiles/" --add-data "anki;anki/" --add-data "win;win/" --add-data "config.ini;."
Mac:
sh build.sh
Temporary fix for all read/write operations using os.path on Mac builds with pyinstaller: create a wrapper file that runs the Game2Text executable inside the package
On MacOS, make sure you have allowed screen recording for your browser in Security & Privacy settings.
Modify config.ini and update the value of browser to edge, chromium, or firefox.