Counting the object in the detection
Can you help me in the counting the object that are in the video by using yolov8 and tracking?
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.
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.
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
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!