mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 17:57:01 +08:00
fix.修复一些浮点数溢出导致的异常
This commit is contained in:
@@ -108,7 +108,7 @@ bool asst::MatchImageAnalyzer::match_templ(const cv::Mat templ)
|
||||
Log.trace("match_templ |", m_templ_name, "score:", max_val, "rect:", rect.to_string(), "roi:", m_roi.to_string());
|
||||
}
|
||||
|
||||
if (max_val >= m_templ_thres) {
|
||||
if (m_templ_thres <= max_val && max_val < 2.0) {
|
||||
m_result = { max_val, rect };
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user