mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 10:32:19 +08:00
fix: 修复基建干员长得太像被当成同一个人,从而被忽略掉的问题
fix https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/1033 fix https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/454 fix https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/384
This commit is contained in:
@@ -216,6 +216,9 @@ size_t asst::InfrastProductionTask::opers_detect()
|
||||
auto find_iter = std::find_if(
|
||||
m_all_available_opers.cbegin(), m_all_available_opers.cend(),
|
||||
[&](const infrast::BattleRealTimeOper& oper) -> bool {
|
||||
if (oper.skills != cur_oper.skills) {
|
||||
return false;
|
||||
}
|
||||
// 有可能是同一个干员,比一下hash
|
||||
int dist = HashImageAnalyzer::hamming(cur_oper.face_hash, oper.face_hash);
|
||||
Log.debug("opers_detect hash dist |", dist);
|
||||
|
||||
Reference in New Issue
Block a user