From 54a51d38461c769af7aa6d21ff0a1edce532d7a4 Mon Sep 17 00:00:00 2001 From: cyy_mac Date: Wed, 25 Mar 2026 19:31:27 +0800 Subject: [PATCH] fix armor_detect --- src/rm_auto_aim/armor_detector/src/light_corner_corrector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rm_auto_aim/armor_detector/src/light_corner_corrector.cpp b/src/rm_auto_aim/armor_detector/src/light_corner_corrector.cpp index db8ca67..a6d3997 100644 --- a/src/rm_auto_aim/armor_detector/src/light_corner_corrector.cpp +++ b/src/rm_auto_aim/armor_detector/src/light_corner_corrector.cpp @@ -151,7 +151,7 @@ cv::Point2f LightCornerCorrector::findCorner(const cv::Mat &gray_img, std::vector candidates; // Limit candidates for performance - use subsampling for wide lights - int n = std::max(1, light.width - 2); + int n = std::max(1, static_cast(light.width) - 2); int stride = std::max(1, n / 5); // Limit to ~5 samples regardless of width int half_n = std::round(n / 2);