Skip to content

Commit b77d3da

Browse files
author
Gin
committed
fixing box info detection failure
1 parent 27023a4 commit b77d3da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SerialPrograms/Source/PokemonLZA/Inference/Boxes/PokemonLZA_BoxInfoDetector.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ bool BoxShinyDetector::detect(const ImageViewRGB32& screen){
6262
{0xff000000, 0xffb4b4b4}, // 180
6363
};
6464

65-
const double max_rsmd = 200.0;
65+
const double max_rsmd = 250.0;
6666
bool found = match_template_by_waterfill(
6767
screen.size(),
6868
extract_box_reference(screen, m_box),
@@ -127,6 +127,7 @@ bool BoxAlphaDetector::detect(const ImageViewRGB32& screen){
127127
size_t min_area = size_t(screen_rel_size_2 * min_area_1080p);
128128

129129
const std::vector<std::pair<uint32_t, uint32_t>> FILTERS = {
130+
{combine_rgb(200, 50, 50), combine_rgb(255, 150, 100)},
130131
{combine_rgb(200, 50, 50), combine_rgb(255, 100, 100)},
131132
{combine_rgb(150, 0, 0), combine_rgb(255, 100, 100)},
132133
};

0 commit comments

Comments
 (0)