79314772

Date: 2024-12-29 00:28:23
Score: 1
Natty:
Report link

Using Yolo tracker I was able to solve my solution.

Adding snippet here

replace these lines:

detections_model = coco_model(frame)[0]

To this:

detections_model = coco_model.track(frame, persist=True)
track_ids = detections_model[0].boxes.id.int().cpu().tolist()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: anandyn02