Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ class ButtonMatcher : public ImageMatch::WaterfillTemplateMatcher{
// - min_height: candidate image min height if video stream is 1080p
ButtonMatcher(ButtonType type, size_t min_width, size_t min_height, double max_rmsd);
static const ButtonMatcher& A(){
static ButtonMatcher matcher(ButtonType::ButtonA, 40, 40, 70);
static ButtonMatcher matcher(ButtonType::ButtonA, 40, 40, 100);
return matcher;
}
static const ButtonMatcher& DpadLeft(){
static ButtonMatcher matcher(ButtonType::ButtonDpadLeft, 30, 30, 120);
static ButtonMatcher matcher(ButtonType::ButtonDpadLeft, 25, 25, 120);
return matcher;
}
static const ButtonMatcher& DpadRight(){
static ButtonMatcher matcher(ButtonType::ButtonDpadRight, 30, 30, 120);
static ButtonMatcher matcher(ButtonType::ButtonDpadRight, 25, 25, 120);
return matcher;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class StampMatcher : public ImageMatch::WaterfillTemplateMatcher{
// - min_height: candidate image min height if video stream is 1080p
StampMatcher(Stamp stamp, size_t min_width, size_t min_height, double max_rmsd);
static const StampMatcher& mew(){
static StampMatcher matcher(Stamp::MEW, 40, 40, 70);
static StampMatcher matcher(Stamp::MEW, 40, 40, 100);
return matcher;
}

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

double min_area_1080p = 500;
double rmsd_threshold = 95;
double rmsd_threshold = 100;
size_t min_area = size_t(screen_rel_size_2 * min_area_1080p);

const std::vector<std::pair<uint32_t, uint32_t>> FILTERS = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ bool SelectionArrowDetector::detect(const ImageViewRGB32& screen){
double screen_rel_size_2 = screen_rel_size * screen_rel_size;

double min_area_1080p = 400;
double rmsd_threshold = 80;
double rmsd_threshold = 100;
size_t min_area = size_t(screen_rel_size_2 * min_area_1080p);

const std::vector<std::pair<uint32_t, uint32_t>> FILTERS = {
Expand Down
Loading