fix: 修复 templ size is too large 时闪退的问题

fix #6639
This commit is contained in:
zzyyyl
2023-10-02 15:10:47 +08:00
parent 48116037ac
commit 466be7766d

View File

@@ -15,6 +15,10 @@ using namespace asst;
MultiMatcher::ResultsVecOpt MultiMatcher::analyze() const
{
auto match_results = Matcher::preproc_and_match(make_roi(m_image, m_roi), m_params);
if (match_results.empty()) {
return std::nullopt;
}
const auto& [matched, templ, templ_name] = match_results.front();
if (matched.empty()) {