mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 18:47:55 +08:00
refactor: matcher result will contain the name of the matched template
This commit is contained in:
@@ -215,6 +215,7 @@ namespace asst
|
||||
|
||||
Rect rect;
|
||||
double score = 0.0;
|
||||
std::string templ_name;
|
||||
};
|
||||
} // namespace asst
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@ Matcher::ResultOpt Matcher::analyze() const
|
||||
// FIXME: 老接口太难重构了,先弄个这玩意兼容下,后续慢慢全删掉
|
||||
m_result.rect = rect;
|
||||
m_result.score = max_val;
|
||||
m_result.templ_name = templ_name;
|
||||
return m_result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user