diff --git a/SerialPrograms/Source/NintendoSwitch/DevPrograms/TestProgramComputer.cpp b/SerialPrograms/Source/NintendoSwitch/DevPrograms/TestProgramComputer.cpp index 7b46d392a..3796af0a5 100644 --- a/SerialPrograms/Source/NintendoSwitch/DevPrograms/TestProgramComputer.cpp +++ b/SerialPrograms/Source/NintendoSwitch/DevPrograms/TestProgramComputer.cpp @@ -236,6 +236,13 @@ void TestProgramComputer::program(ProgramEnvironment& env, CancellableScope& sco // using namespace NintendoSwitch::PokemonSwSh::MaxLairInternal; + ImageRGB32 image("screenshot-20231016-130205783594.png"); + PokemonSummaryDetector detector; + cout << detector.detect(image) << endl; + + + +#if 0 ImageRGB32 image("screenshot-20231005-203932147068.png"); SummaryStatsReader reader; // cout << detector.detect(image) << endl; @@ -246,7 +253,7 @@ void TestProgramComputer::program(ProgramEnvironment& env, CancellableScope& sco cout << (int)nature.spatk << endl; cout << (int)nature.spdef << endl; cout << (int)nature.speed << endl; - +#endif diff --git a/SerialPrograms/Source/PokemonSV/Inference/PokemonSV_PokemonSummaryReader.cpp b/SerialPrograms/Source/PokemonSV/Inference/PokemonSV_PokemonSummaryReader.cpp index c90b4cbc0..3dbca2963 100644 --- a/SerialPrograms/Source/PokemonSV/Inference/PokemonSV_PokemonSummaryReader.cpp +++ b/SerialPrograms/Source/PokemonSV/Inference/PokemonSV_PokemonSummaryReader.cpp @@ -21,7 +21,8 @@ namespace PokemonSV{ bool is_summary_color(const ImageStats& stats){ return is_solid(stats, {0.648549, 0.2861580, 0.0652928}, 0.15, 20) // Scarlet || is_solid(stats, {0.367816, 0.0746615, 0.5575230}, 0.15, 20) // Violet - || is_solid(stats, {0.196536, 0.5933000, 0.2101630}, 0.18, 20); // DLC Green + || is_solid(stats, {0.196536, 0.5933000, 0.2101630}, 0.18, 20) // DLC Green + || (stats.average.g / stats.average.sum()) > 0.5; // DLC Green }