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); }