latest/how_to/track_objects/ #849
Replies: 14 comments 27 replies
-
Hello, can we some other detector instead of yolo? |
Beta Was this translation helpful? Give feedback.
-
Hi! Would it work to use the tracking functionality that comes with tracker = sv.ByteTrack() |
Beta Was this translation helpful? Give feedback.
-
Can I use this method directly on jetson nano with CSI camera? |
Beta Was this translation helpful? Give feedback.
-
hi, does supervision support yolov8 version 8.2? or should i stick to yolov8 version 8.1? thank you very much! |
Beta Was this translation helpful? Give feedback.
-
Hello, How can I track objects and detect if it enter a specified zone and crop it if it does? thank you |
Beta Was this translation helpful? Give feedback.
-
Hi! |
Beta Was this translation helpful? Give feedback.
This comment has been minimized.
This comment has been minimized.
-
i am using a model that detect only one class. For the labels part i used >>>labels = [f"#{tracker_id}" for tracker_id in detections.tracker_id]. but am getting an error: |
Beta Was this translation helpful? Give feedback.
-
Please, please, please integrate DeepSort! |
Beta Was this translation helpful? Give feedback.
-
While tracking object through bytetracker we are facing issue of id swapping. If 2 person cross each other in a video frame, their tracking id is getting swapped. How to tackle this issue. Whether bytetracker has any in-build method to tackle this issue. |
Beta Was this translation helpful? Give feedback.
-
how to get total count of detected objects? |
Beta Was this translation helpful? Give feedback.
-
When I use the code, some noise appears on top of the results. It seems like the AI is detecting other objects that do not actually appear in the video |
Beta Was this translation helpful? Give feedback.
-
Hi, wonder how to detect only persons ? Try it to filter by class id, but still seeing that detects other objects. import numpy as np
import supervision as sv
from ultralytics import YOLO
model = YOLO("yolov8n.pt")
box_annotator = sv.BoundingBoxAnnotator()
tracker = sv.ByteTrack()
def callback(frame: np.ndarray, _: int) -> np.ndarray:
results = model(frame)[0]
detections = sv.Detections.from_ultralytics(results)
person_class_id = 0
person_detections = detections[detections.class_id == person_class_id]
print(f"Detected persons: {len(person_detections)}")
if len(person_detections) > 0:
tracked_persons = tracker.update_with_detections(person_detections)
annotated_frame = box_annotator.annotate(frame.copy(), detections=tracked_persons)
return annotated_frame
else:
return frame
sv.process_video(
source_path="video.mp4",
target_path="output_video.mp4",
callback=callback
) 0: 384x640 5 persons, 6 cars, 1 truck, 422.2ms
Speed: 6.1ms preprocess, 422.2ms inference, 2.9ms postprocess per image at shape (1, 3, 384, 640)
Detected persons: 5 |
Beta Was this translation helpful? Give feedback.
-
Can you apply this to OBB detection? I tried several times but still not working |
Beta Was this translation helpful? Give feedback.
-
latest/how_to/track_objects/
A set of easy-to-use utilities that will come in handy in any computer vision project.
https://supervision.roboflow.com/latest/how_to/track_objects/
Beta Was this translation helpful? Give feedback.
All reactions