Skip to content

Game2Text on M1 Mac

Download

Download Game2Text on Github

https://github.com/mathewthe2/Game2Text

download-source

Select Download ZIP, then double click the zip fille to extract.

Install Tesseract

Type the following commands to Terminal.

brew install tesseract
brew install tesseract-lang

Install PortAudio

Type the following commands to Terminal.

brew install portaudio
pip3 install --global-option='build_ext' --global-option='-I/opt/homebrew/include' --global-option='-L/opt/homebrew/lib' pyaudio

Install Python

Type the following commands to Terminal.

brew install [email protected]

Create virtualenv in Game2Text Folder

Install virtualenv.

pip3 install virtualenv

Navigate to Game2Text folder.

cd ~/downloads
cd Game2Text-main

Set up python environment.

virtualenv venv --python=python3.8
source venv/bin/activate

Install Python Packages

pip install eel pytesseract psutil opencv-python pydub fuzzywuzzy requests googletrans parse pynput pyperclip pyyaml sudachipy 
pip install sudachidict_small

Update Tesseract Path

Locate your tesseract by entering which tesseract in terminal. Copy the path.

which tesseract
$ /opt/homebrew/bin/tesseract
Modify tools.py (line 32) to match your tesseract path.

m1-mac-tesseract-path

Running Game2Text

python game2text.py