调试yolo矿体
This commit is contained in:
parent
b6a0b954cb
commit
5533969800
@ -514,6 +514,14 @@ private:
|
||||
det.bbox.h = static_cast<float>(Clamp(static_cast<int>(h / scale_h), 0, frame->height - static_cast<int>(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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user