fix: update threshold for StageDropsImageAnalyzer

fix https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/7282
This commit is contained in:
Horror Proton
2023-11-13 10:59:44 +08:00
parent adb6d2b5bc
commit 3d80b118ee

View File

@@ -1,7 +1,6 @@
#include "StageDropsImageAnalyzer.h"
#include <numbers>
#include <opencv2/core/mat.hpp>
#include <regex>
#include "Utils/Ranges.hpp"
@@ -709,7 +708,7 @@ std::optional<asst::TextRect> asst::StageDropsImageAnalyzer::match_quantity_stri
}
Matcher analyzer(m_image);
analyzer.set_threshold(0.8);
analyzer.set_threshold(0.76); // temporary fix for #7282
analyzer.set_templ(templ);
analyzer.set_mask_range(1, 255, false, true);
analyzer.set_roi(roi);