From 29ccd0f4ff24e6d4e82e1afd8d4f2fdaae91b1ae Mon Sep 17 00:00:00 2001 From: status102 <102887808+status102@users.noreply.github.com> Date: Tue, 20 Jan 2026 13:26:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=87=AA=E5=8A=A8=E7=BC=96=E9=98=9F?= =?UTF-8?q?=E8=AF=86=E5=88=AB=E6=8A=80=E8=83=BD=E7=AD=89=E7=BA=A7=E5=8C=B9?= =?UTF-8?q?=E9=85=8D=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaCore/Task/Miscellaneous/BattleFormationTask.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/MaaCore/Task/Miscellaneous/BattleFormationTask.cpp b/src/MaaCore/Task/Miscellaneous/BattleFormationTask.cpp index 22dfa5beb6..c0c01cbdb6 100644 --- a/src/MaaCore/Task/Miscellaneous/BattleFormationTask.cpp +++ b/src/MaaCore/Task/Miscellaneous/BattleFormationTask.cpp @@ -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;