From e6bf3c4605aeb4535a8ff3db2ec5aaf6c44cf304 Mon Sep 17 00:00:00 2001 From: status102 <102887808+status102@users.noreply.github.com> Date: Sun, 18 Feb 2024 22:44:31 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=BE=85=E9=83=A8=E7=BD=B2=E5=8C=BA?= =?UTF-8?q?=E8=AF=86=E5=88=ABdebug=E6=97=B6m=5Fimage=5Fdraw=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=86=B7=E5=8D=B4=E4=B8=AD=E6=96=87=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaCore/Vision/Battle/BattlefieldMatcher.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/MaaCore/Vision/Battle/BattlefieldMatcher.cpp b/src/MaaCore/Vision/Battle/BattlefieldMatcher.cpp index 036b8c2a95..a97ea7ad65 100644 --- a/src/MaaCore/Vision/Battle/BattlefieldMatcher.cpp +++ b/src/MaaCore/Vision/Battle/BattlefieldMatcher.cpp @@ -129,6 +129,13 @@ std::vector BattlefieldMatcher::deployment_analyze() con Log.error("oper is available, but with cooling"); } +#ifdef ASST_DEBUG + if (oper.cooling) { + cv::putText(m_image_draw, "cooling", cv::Point(oper.rect.x, oper.rect.y - 20), 1, 1.2, + cv::Scalar(0, 0, 255)); + } +#endif + if (m_object_of_interest.oper_cost) { Rect cost_rect = correct_rect(flag_res.rect.move(cost_move), m_image); oper.cost = oper_cost_analyze(cost_rect);