Skip to content

andygcui/tennis-swing-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3d tennis swing tracker

pose detection of tennis swing paths from video footage using MediaPipe

  • extracts joint coords, computes geometric transformation to normalize 3d data (uses court boundaries + net as camera angle baselines)
  • cross-video comparative analysis across database of professional 3d swing paths
  • explores a "similarity scoring" to suggest optimal playing style

demo: https://youtu.be/HbyJnkKpvEI

3d_swing_path

Setup

  1. Create a virtual environment (recommended):
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Create a database folder and add professional tennis videos for comparison.

Usage

  1. Run the main script:
python main.py
  1. Follow the prompts to:
    • Select a video file for analysis
    • Choose comparison parameters
    • View the analysis results

Project Structure

  • main.py: Main script for video processing and analysis
  • pose_estimation.py: Pose estimation and tracking module
  • movement_analysis.py: Movement analysis and comparison module
  • database/: Directory for storing professional tennis videos
  • output/: Directory for storing analysis results

About

3d pose detection w joint coords to analyze stroke mechanics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors