A small application to track the athlete gesture and motion over time
Key Sports: running, taekwondo, cycling, triathlon
Frameworks: Mediapipe
Features:
- angle tracking
- trajectory tracking
- AI-Trainer
angle tracking:
MediaPipe number body mapping:
Install all the libraries of this project:
pip install -r requirements.txtClone the repo:
git clone https://github.com/furio1999/Sport_position_tracking.gitcd [PATH-TO-THE-REPO]/applicationstart the video application:
# Run on the webcam
python sport_pose.py --camera
# Run on video
python sport_pose.py --video [PATH_TO_VIDEO] #eg. --video videos/tkd.mp4activate the desired features
#perform trajectory tracking (taekwondo video)
python sport_pose.py --trajectory_tracking
#perform running form evaluation (use 1500_doha.mp4 to reproduce my results)
python sport_pose.py --running_evaluationchoose the desired body part to track
python sport_pose.py --body_part [NAME_OF_PART]
#see the help sectionchoose a single mediapipe joint to track
python sport_pose.py --joint [NUMBER OF JOINT]
#refers to mediapipe number mapping https://google.github.io/mediapipe/solutions/pose.htmlSet up the duration (default value of 45s), otherwise press "q" to stop the application:
python sport_pose.py --duration [SECONDS]help and explanation on a specific command
python sport_pose.py [COMMAND] -help
#es. --body_part -help