Skip to content

Commit dc23d98

Browse files
committed
Suppress successfully arbitrated OCR+sprite matching.
1 parent d48ac98 commit dc23d98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

SerialPrograms/Source/PokemonSwSh/MaxLair/Inference/PokemonSwSh_MaxLair_Detect_PokemonReader.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,6 @@ std::string read_pokemon_name_sprite(
371371
}
372372

373373
// This is where things get bad since OCR and sprites disagree.
374-
dump_image(logger, MODULE_NAME, "MaxLair-read_name_sprite", screen);
375374

376375
// If there is only one sprite match, use it.
377376
if (result.results.size() == 1){
@@ -387,6 +386,9 @@ std::string read_pokemon_name_sprite(
387386

388387
// At this point, both OCR and sprites have multiple items in completely disjoint sets.
389388
logger.log("Sprite and OCR disagree so badly that no arbitration will be attempted.", COLOR_RED);
389+
390+
dump_image(logger, MODULE_NAME, "MaxLair-read_name_sprite", screen);
391+
390392
return "";
391393
}
392394

0 commit comments

Comments
 (0)