deepsparse icon indicating copy to clipboard operation
deepsparse copied to clipboard

Counting the object in the detection

Open AJITKUMAR130012 opened this issue 1 year ago • 3 comments

Can you help me in the counting the object that are in the video by using yolov8 and tracking?

AJITKUMAR130012 avatar Aug 14 '24 11:08 AJITKUMAR130012

The simplest way would be to take the output from the object detection pipeline and count the number of boxes that have the class you are interested in.

mgoin avatar Aug 20 '24 19:08 mgoin

When we have to count the from in the video then need tracking, But in the yolo pipeline there is no tracking id. That's the issue, even i run on the video.

AJITKUMAR130012 avatar Aug 26 '24 12:08 AJITKUMAR130012

import os import time print("Ajit") st=time.time() model_path="traffic_best_n.onnx" output_path="out" cmd=["deepsparse.yolov8.annotate", "--source", "People2.mp4", "--model_filepath", str(model_path), "--save_dir", output_path] cmd = ' '.join(cmd) os.system(cmd) ed=time.time() print(ed-st)

I have used the above code for the video

AJITKUMAR130012 avatar Aug 26 '24 12:08 AJITKUMAR130012

Per the main README announcement, DeepSparse is being deprecated by June 2, 2025. Closing the issue as further development has been suspended; thank you for the inputs and support!

jeanniefinks avatar May 09 '25 20:05 jeanniefinks