From 5533969800fa35772e44039e109ee4704d1afb78 Mon Sep 17 00:00:00 2001 From: sladro Date: Fri, 26 Dec 2025 16:24:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95yolo=E7=9F=BF=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/ai_yolo/ai_yolo_node.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/ai_yolo/ai_yolo_node.cpp b/plugins/ai_yolo/ai_yolo_node.cpp index 17f5233..39d4f36 100644 --- a/plugins/ai_yolo/ai_yolo_node.cpp +++ b/plugins/ai_yolo/ai_yolo_node.cpp @@ -514,6 +514,14 @@ private: det.bbox.h = static_cast(Clamp(static_cast(h / scale_h), 0, frame->height - static_cast(det.bbox.y))); det.track_id = -1; + // Debug output for first few detections + if (det_result->items.size() < 3 && processed_ < 10) { + std::cout << "[ai_yolo] det: raw(" << x1 << "," << y1 << "," << w << "," << h + << ") -> bbox(" << det.bbox.x << "," << det.bbox.y << "," + << det.bbox.w << "," << det.bbox.h << ") cls=" << cls_id + << " score=" << det.score << "\n"; + } + det_result->items.push_back(det); }