Skip to content

Improve FRLG nature reading - #1312

Merged
Mysticial merged 1 commit into
PokemonAutomation:mainfrom
theastrogoth:frlg-nature-ocr
Jul 1, 2026
Merged

Improve FRLG nature reading#1312
Mysticial merged 1 commit into
PokemonAutomation:mainfrom
theastrogoth:frlg-nature-ocr

Conversation

@theastrogoth

Copy link
Copy Markdown
Contributor

This tweaks nature OCR for FRLG. Previously, black/white thresholding was done before blurring in a similar but shuffled process compared to some of the other text reading. I'm not sure why this was originally chosen, but switching to just using preprocess_for_ocr seems to be much more effective, with the added benefit of reducing repeated code.

I've also reorganized PokemonFRLG_StatsReader.cpp a bit by moving a few things to helper functions rather than have a lot of stuff happen in one big "read" function.

This fixes the bug reported by Cris and Patrick

@Mysticial
Mysticial merged commit 24e008e into PokemonAutomation:main Jul 1, 2026
7 checks passed
@theastrogoth
theastrogoth deleted the frlg-nature-ocr branch July 12, 2026 00:39
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.

2 participants