Add https://youtu.be/uDrn9QZJ2lk and object_counting.py, ai_gym.py updates (#9265)
This commit is contained in:
parent
281e07d7e6
commit
dcb953bc41
5 changed files with 39 additions and 11 deletions
|
|
@ -171,7 +171,7 @@ class ObjectCounter:
|
|||
# Extract tracks
|
||||
for box, track_id, cls in zip(boxes, track_ids, clss):
|
||||
# Draw bounding box
|
||||
self.annotator.box_label(box, label=f"{track_id}:{self.names[cls]}", color=colors(int(cls), True))
|
||||
self.annotator.box_label(box, label=f"{track_id}:{self.names[cls]}", color=colors(int(track_id), True))
|
||||
|
||||
# Draw Tracks
|
||||
track_line = self.track_history[track_id]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue