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.txt
Clone the repo:
git clone https://github.com/furio1999/Sport_position_tracking.git
cd [PATH-TO-THE-REPO]/application
start 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.mp4
activate 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_evaluation
choose the desired body part to track
python sport_pose.py --body_part [NAME_OF_PART]
#see the help section
choose 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.html
Set 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