Skip to content

Commit

Permalink
create new branch to implement pose estimation
Browse files Browse the repository at this point in the history
  • Loading branch information
dweizzz committed Oct 1, 2023
1 parent 80eb10a commit ddf658c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Binary file added .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def main(video_path):
output_video_path = 'tmp/court_video.mp4'
output_video_path_reenc = 'tmp/court_video_reenc.mp4'

processrunner = ProcessRunner(video_path, people_output, ball_output, output_video_path,
processrunner = ProcessRunner(video_path, people_output, ball_output, output_video_path,
output_video_path_reenc)
processrunner.run()
results = processrunner.get_results()
Expand Down
5 changes: 5 additions & 0 deletions src/processing/pose_estimate.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from ultralytics import YOLO

model = YOLO('yolov8m-pose.pt')

results = model(source = "test_video.mp4", show = True, conf = 0.3, save = True)

0 comments on commit ddf658c

Please sign in to comment.