From d3dcb45bee74df4b0cf022a8076dbee5106702b0 Mon Sep 17 00:00:00 2001 From: status102 <102887808+status102@users.noreply.github.com> Date: Thu, 26 Feb 2026 19:10:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=B7=E7=90=86=E6=99=BA-=E6=8E=89?= =?UTF-8?q?=E8=90=BD=E8=AF=86=E5=88=ABrect=E8=B6=85=E9=99=90=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E5=B4=A9=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaCore/Vision/Miscellaneous/StageDropsImageAnalyzer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MaaCore/Vision/Miscellaneous/StageDropsImageAnalyzer.cpp b/src/MaaCore/Vision/Miscellaneous/StageDropsImageAnalyzer.cpp index 54e70ca7be..3317b794fc 100644 --- a/src/MaaCore/Vision/Miscellaneous/StageDropsImageAnalyzer.cpp +++ b/src/MaaCore/Vision/Miscellaneous/StageDropsImageAnalyzer.cpp @@ -769,7 +769,7 @@ std::optional const auto& color_scale = std::get(task_ptr->color_scales.front()); Rect quantity_roi = roi.move(task_ptr->roi); - cv::Mat quantity_img = m_image(make_rect(quantity_roi)); + cv::Mat quantity_img = m_image(make_rect(correct_rect(quantity_roi, m_image))); cv::Mat gray, bin; cv::cvtColor(quantity_img, gray, cv::COLOR_BGR2GRAY);