Skip to content

jannat226/TennisAnalysis

Repository files navigation

🎾 Tennis Video Analysis

This app analyzes tennis videos to track players, balls, and court lines while providing real-time statistics and visualizations.

Built using modern computer vision techniques, it empowers coaches, analysts, and players to gain insights from match footage with minimal setup.


all the files even the heavy files : https://drive.google.com/drive/folders/1J-9vjDdHmvwVVVNBSQHbuVGwCewRUPoR?usp=sharing

📽️ Demo

👉 Watch the demo video


📁 Datasets Used


🧠 Training Notebooks

You can retrain or fine-tune the models using these Colab notebooks:

  • 📝 tennis_ball_detector_training.ipynb
    → Train the YOLOv8-based tennis ball detector

  • 📝 TennisCourtKeyPoint.ipynb
    → Run this to generate the keypoint-based court detection model


🚀 Features

✅ Player tracking and identification
✅ Ball trajectory analysis
✅ Court line detection
✅ Speed calculations
✅ Mini court visualization
✅ Player performance statistics


🖥️ Usage Instructions

  1. Upload an .mp4 tennis video through the app interface
  2. Wait for processing (may take several minutes depending on video length and hardware)
  3. View the analyzed video with overlays (ball paths, player movement, court lines)
  4. Download the processed video with annotations for review or sharing

🛠 Technologies Used

  • Python
  • OpenCV
  • YOLOv8 (Ultralytics)
  • PyTorch
  • Streamlit (for the web frontend)
  • Roboflow (for dataset hosting & model training)

About

to measure the speed of players, ball shot speed and number of shots. All the files easy peasy -> https://drive.google.com/drive/folders/1J-9vjDdHmvwVVVNBSQHbuVGwCewRUPoR?usp=sharing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors