Skip to content

Commit

Permalink
Merge branch 'ball-202' into pose-estimate
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikonooooo authored Oct 25, 2023
2 parents 388cfb0 + 1df5d4a commit e5e1445
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ tmp/
tmp/*.json
.DS_Store
.vscode/
tmp/
Binary file added data/stable_jerry.mp4
Binary file not shown.
16 changes: 11 additions & 5 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,21 @@ def main(video_path):
modelrunner.run()
modelrunner.pose()
people_output, ball_output, pose_output = modelrunner.fetch_output()
output_video_path = 'tmp/court_video.mp4'
output_video_path_reenc = 'tmp/court_video_reenc.mp4'
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,
output_video_path_reenc,
)

processrunner = ProcessRunner(video_path, people_output, ball_output, output_video_path,
output_video_path_reenc)
processrunner.run()
results = processrunner.get_results()
return results


if __name__ == "__main__":
import sys
Expand Down

0 comments on commit e5e1445

Please sign in to comment.