Skip to content

Commit d507632

Browse files
authored
Increased Detector Tolerances (#1321)
Increased RMSD values for Pokopia detectors
1 parent 06355d1 commit d507632

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

SerialPrograms/Source/PokemonPokopia/Inference/PokemonPokopia_ButtonDetector.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ class ButtonMatcher : public ImageMatch::WaterfillTemplateMatcher{
2727
// - min_height: candidate image min height if video stream is 1080p
2828
ButtonMatcher(ButtonType type, size_t min_width, size_t min_height, double max_rmsd);
2929
static const ButtonMatcher& A(){
30-
static ButtonMatcher matcher(ButtonType::ButtonA, 40, 40, 70);
30+
static ButtonMatcher matcher(ButtonType::ButtonA, 40, 40, 100);
3131
return matcher;
3232
}
3333
static const ButtonMatcher& DpadLeft(){
34-
static ButtonMatcher matcher(ButtonType::ButtonDpadLeft, 30, 30, 120);
34+
static ButtonMatcher matcher(ButtonType::ButtonDpadLeft, 25, 25, 120);
3535
return matcher;
3636
}
3737
static const ButtonMatcher& DpadRight(){
38-
static ButtonMatcher matcher(ButtonType::ButtonDpadRight, 30, 30, 120);
38+
static ButtonMatcher matcher(ButtonType::ButtonDpadRight, 25, 25, 120);
3939
return matcher;
4040
}
4141

SerialPrograms/Source/PokemonPokopia/Inference/PokemonPokopia_PCDetection.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class StampMatcher : public ImageMatch::WaterfillTemplateMatcher{
9696
// - min_height: candidate image min height if video stream is 1080p
9797
StampMatcher(Stamp stamp, size_t min_width, size_t min_height, double max_rmsd);
9898
static const StampMatcher& mew(){
99-
static StampMatcher matcher(Stamp::MEW, 40, 40, 70);
99+
static StampMatcher matcher(Stamp::MEW, 40, 40, 100);
100100
return matcher;
101101
}
102102

@@ -260,7 +260,7 @@ bool RecipeIconDetector::detect(const ImageViewRGB32& screen){
260260
double screen_rel_size_2 = screen_rel_size * screen_rel_size;
261261

262262
double min_area_1080p = 500;
263-
double rmsd_threshold = 95;
263+
double rmsd_threshold = 100;
264264
size_t min_area = size_t(screen_rel_size_2 * min_area_1080p);
265265

266266
const std::vector<std::pair<uint32_t, uint32_t>> FILTERS = {

SerialPrograms/Source/PokemonPokopia/Inference/PokemonPokopia_SelectionArrowDetector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ bool SelectionArrowDetector::detect(const ImageViewRGB32& screen){
7272
double screen_rel_size_2 = screen_rel_size * screen_rel_size;
7373

7474
double min_area_1080p = 400;
75-
double rmsd_threshold = 80;
75+
double rmsd_threshold = 100;
7676
size_t min_area = size_t(screen_rel_size_2 * min_area_1080p);
7777

7878
const std::vector<std::pair<uint32_t, uint32_t>> FILTERS = {

0 commit comments

Comments
 (0)