Skip to content

Latest commit

 

History

History
71 lines (41 loc) · 2.28 KB

README.md

File metadata and controls

71 lines (41 loc) · 2.28 KB

Game2Text

made-with-python

Game2Text Preview

Game2Text is an all-in-one application that helps you learn language from games.

Features

  • Dictionary lookup with browser dictionaries like Yomichan
  • Translation - DeepL, Papago, and Google
  • Create image and audio flashcards via Anki and AnkiConnect

Download

You can find downloads on Releases.

Prerequisite: Tesseract

Windows/Mac: Tesseract is bundled with the application.

Linux: Follow installation instructions here.

Custom Config

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

Image Filter Profiles

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.

Getting Started

Create a venv, then once activated install requirements:

pip install -r requirements.txt
python game2text.py

Distribution

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

FAQ

Q. Why is my application not showing in screen share?

On MacOS, make sure you have allowed screen recording for your browser in Security & Privacy settings.

Q. How do I use Game2Text without Chrome?

Modify config.ini and update the value of browser to edge, chromium, or firefox.