From be5384942f45e596f8e5df35baa8d97a86dfb9ea Mon Sep 17 00:00:00 2001 From: Boombaastical Date: Sun, 19 Apr 2026 11:16:26 +0200 Subject: [PATCH] Relax EventDialogDetector color thresholds for Alabaster Icelands The dialog box was intermittently undetected in Alabaster Icelands due to the snowy environment causing slightly lighter blue edges and higher pixel variance in the detection regions. Loosen RGB channel limits and stddev threshold to accommodate the brighter ambient lighting. Co-Authored-By: Claude Sonnet 4.6 --- .../Source/PokemonLA/Inference/PokemonLA_DialogDetector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SerialPrograms/Source/PokemonLA/Inference/PokemonLA_DialogDetector.cpp b/SerialPrograms/Source/PokemonLA/Inference/PokemonLA_DialogDetector.cpp index ec85ff9f85..5f1b6a6000 100644 --- a/SerialPrograms/Source/PokemonLA/Inference/PokemonLA_DialogDetector.cpp +++ b/SerialPrograms/Source/PokemonLA/Inference/PokemonLA_DialogDetector.cpp @@ -175,7 +175,7 @@ bool EventDialogDetector::process_frame(const ImageViewRGB32& frame, WallClock t auto dialog_bg_color_check = [](const ImageStats & stats) -> bool{ // cout << "stats " << stats.average << " " << stats.stddev << endl; const auto& avg = stats.average; - return avg.r < 50.0 && avg.g < 70.0 && avg.b < 100.0 && avg.r < avg.b * 1.3 && avg.g < avg.b * 1.3 && stats.stddev.sum() < 20.; + return avg.r < 60.0 && avg.g < 80.0 && avg.b < 120.0 && avg.r < avg.b * 1.4 && avg.g < avg.b * 1.4 && stats.stddev.sum() < 30.; }; ImageStats left_blue = image_stats(extract_box_reference(frame, m_left_blue));