fix: 自动编队识别技能等级匹配失败

This commit is contained in:
status102
2026-01-20 13:26:15 +08:00
parent d58b86cfb4
commit 29ccd0f4ff

View File

@@ -721,6 +721,8 @@ bool asst::BattleFormationTask::check_and_select_skill(
// 使用模板匹配检测重叠区域
Matcher match(stitched_image);
match.set_templ(make_roi(roi_image_new, cv::Rect { 0, 0, roi_image_new.cols, 30 }));
match.set_method(MatchMethod::Ccoeff);
match.set_threshold(0.8);
if (!match.analyze()) {
retry++;
continue;