Skip to content

putriargs/tennis_rally_counter

Repository files navigation

Tennis Rally Counter

This repository contains code to detect tennis balls in images and count rallies.

Features

  • Tennis Ball Detection (using YOLOv8)
  • Tennis Court Line Detection

Credits

The model and court line detector logic is adapted from tennis_analysis.

Getting Started

  1. Clone the repository
  2. Install dependencies:
    pip install -r requirements.txt
  3. Run the detection script:
    python detect_ball.py
  4. Run the video detection script:
    python detect_ball_video.py

About

Goals: Detect rally length in tennis match videos

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages