fix.修复一个掉落识别错误的问题

https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/846
This commit is contained in:
MistEO
2022-06-12 22:12:57 +08:00
parent a932b8a7a3
commit 8da3e1deb3
2 changed files with 5 additions and 5 deletions

View File

@@ -6754,6 +6754,10 @@
"l",
"1"
],
[
"工",
"1"
],
[
"o",
"0"

View File

@@ -31,9 +31,7 @@ bool asst::StageDropsImageAnalyzer::analyze()
cv::imwrite("debug/" + stem + "_draw.png", m_image_draw);
#endif
return std::all_of(m_drops.cbegin(), m_drops.cend(), [](const auto& item_info) -> bool {
return item_info.quantity > 0;
});
return ret;
}
asst::StageKey asst::StageDropsImageAnalyzer::get_stage_key() const
@@ -203,10 +201,8 @@ bool asst::StageDropsImageAnalyzer::analyze_drops()
if (quantity <= 0) {
has_error = true;
Log.error(__FUNCTION__, "quantity error", quantity);
continue;
}
if (item.empty()) {
has_error = true;
Log.warn(__FUNCTION__, "item id is empty");
}
StageDropInfo info;