Skip to content

PokemonFRLG_OptionMenuReader: handle nearest-neighbour mGBA option text - #680

Open
dayfine wants to merge 1 commit into
lab/mgba-frlgfrom
lab/mgba-option-menu-ocr
Open

dayfine wants to merge 1 commit into
lab/mgba-frlgfrom
lab/mgba-option-menu-ocr

Conversation

@dayfine

@dayfine dayfine commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Base: lab/mgba-frlg (fork-only mGBA + FRLG stack; lab/dev-frlg-stage8 untouched).

Fixes OptionMenuReader OCR on 6.5x nearest-neighbour mGBA frames (Lab-mGBA-Console.md Decision 4):

  • Adds {combine_rgb(150, 0, 0), combine_rgb(255, 100, 100)} to VALUE_TEXT_FILTERS() to isolate red letter strokes from the peach drop shadow.
  • Uses preprocess_for_ocr(image, 5, 1) (single 5x5 blur pass instead of two 7x7 passes) so ON and MID do not smear into "OH" / "m".
  • Sets TEXT SPEED m_max_log10p to -0.25 so "D" -> "mid" (-0.31158) passes while "Am" -> "fast" (-0.228854) is rejected.

Verified locally with SerialProgramsTests --filter "PokemonFRLG::OptionMenuReader" (5/5 passed: 3 Switch NSO images + 2 mGBA failure captures).

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