mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-20 02:55:38 +08:00
fix: 修复偶现仓库材料种类识别错误
fix https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/2048
This commit is contained in:
@@ -185,9 +185,10 @@ size_t asst::DepotImageAnalyzer::match_item(const Rect& roi, /* out */ ItemInfo&
|
||||
matched_item_id = item_id;
|
||||
matched_index = index;
|
||||
}
|
||||
// 匹配到了任一结果后,再往后匹配四个。
|
||||
// 匹配到了任一结果后,再往后匹配几个。
|
||||
// 因为有些相邻的材料长得很像(同一种类的)
|
||||
if (matched_index != NPos && ++extra_count >= 4) {
|
||||
constexpr size_t MaxExtraMatch = 8;
|
||||
if (matched_index != NPos && ++extra_count >= MaxExtraMatch) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user