refactor: matcher result will contain the name of the matched template

This commit is contained in:
Weiyou Wang
2024-06-10 18:49:39 +10:00
parent 327115b003
commit 60d58bf93e
2 changed files with 2 additions and 0 deletions

View File

@@ -215,6 +215,7 @@ namespace asst
Rect rect;
double score = 0.0;
std::string templ_name;
};
} // namespace asst

View File

@@ -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;
}