This project uses Python + Tesseract OCR to process Rise of Kingdoms game screenshots and extract text data into a program-readable format.
project_root/
│
├─ main_app.py # Program entry point
├─ ocr_utils.py # Main OCR module
├─ autocomplete_entry.py
├─ test_data/
├─ .gitignore
└─ README.mdpip install pytesseract PillowWindows
Download and install here:
macOS
brew install tesseractLinux (Ubuntu)
sudo apt install tesseract-ocrIf Tesseract is not in your system PATH, set an environment variable:
# Windows PowerShell
setx TESSERACT_PATH "C:\Program Files\Tesseract-OCR\tesseract.exe"
# macOS / Linux
export TESSERACT_PATH="/usr/local/bin/tesseract"The program will automatically read this environment variable. If not set, it will use the platform default path.
Follow these steps to use the OCR Tracker:
-
Basic Settings
- Set the Appearance Mode using the button if desired.
-
Load Images
-
Configure Required Options
-
Optional Settings
- Enter the Max Player limit if desired.
- Set Requirement value if needed.
-
Process Images
- Click Process Image to process images to graylevel.
- The Raw Image and Processed Image will be displayed in the Main Display Panel.
- Results will appear in the Treeview Table.
-
Extract Information and Match
-
Show Result
-
Edit data (Optional)
-
Add New Row (Optional)
-
Save Results