Skip to content

FRLG digit OCR improvements - #1425

Merged
theastrogoth merged 5 commits into
PokemonAutomation:mainfrom
theastrogoth:frlg-digit-ocr
Aug 25, 2026
Merged

FRLG digit OCR improvements#1425
theastrogoth merged 5 commits into
PokemonAutomation:mainfrom
theastrogoth:frlg-digit-ocr

Conversation

@theastrogoth

Copy link
Copy Markdown
Contributor

A few fixes and tweaks:

  • adds new digit templates with a white background (trainer card, dialogue boxes) rather than reusing stats screen ones
  • adds a step for digit OCR that tightens the crop in case a dark capture card causes the thresholding to also includes the drop shadow
  • removes an unnecessary step from level OCR (shrinking the box) and just starts from a smaller box instead
  • adds a new box for reading the level for the Spanish version
  • fixes trainer card reading for Spanish (needed a shifted box)
  • adds tests for the TrainerIdReader, BattleLevelUpReader, and PartyLevelUpReader

@theastrogoth
theastrogoth merged commit 78d397e into PokemonAutomation:main Aug 25, 2026
7 checks passed
@theastrogoth
theastrogoth deleted the frlg-digit-ocr branch August 25, 2026 20:08
Mysticial pushed a commit that referenced this pull request Aug 26, 2026
* fix TID reading for Spanish

* reliability improvements for digit reading

* add more tests

* remove weird level box trim from original implementation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant