|
@@ -19,7 +19,8 @@ void TrackNode::handle_data(std::shared_ptr<meta::MetaData>& meta_data)
|
|
|
obj.rect.y = box.top;
|
|
|
obj.rect.width = box.right - box.left;
|
|
|
obj.rect.height = box.bottom - box.top;
|
|
|
- obj.label = box.class_id; // 假设 Object::label 存的是 int 类型的 class_id
|
|
|
+ // obj.label = box.class_id; // 假设 Object::label 存的是 int 类型的 class_id
|
|
|
+ obj.label = 0;
|
|
|
obj.prob = box.score;
|
|
|
|
|
|
if (obj.rect.width > 0 && obj.rect.height > 0 && obj.prob > 0) { // 至少prob > 0
|