Skip to content

Commit

Permalink
run botsort file in src dir to see sample, check in with eric and mic…
Browse files Browse the repository at this point in the history
…haal to see if its too slow
  • Loading branch information
Jake0826 committed Sep 26, 2023
1 parent 19a7a05 commit 4fd2421
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/botsort.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
model = YOLO('yolov8n.pt')

# Open the video file
video_path = "test2_10seconds.mp4"
video_path = "training_data.mp4"
cap = cv2.VideoCapture(video_path)

# Loop through the video frames
Expand All @@ -16,7 +16,7 @@
if success:
# Run YOLOv8 tracking on the frame, persisting tracks between frames
# change tracker to botsort.yaml or bytetrack.yaml
results = model.track(frame, persist=True, tracker="bytetrack.yaml")
results = model.track(frame, persist=True, tracker="botsort.yaml")

# Visualize the results on the frame
annotated_frame = results[0].plot()
Expand Down
Binary file added src/training_data.mp4
Binary file not shown.
Binary file added src/yolov8n.pt
Binary file not shown.

0 comments on commit 4fd2421

Please sign in to comment.