Basket-Analytics / BasketTracking

Basketball 🏀 action tracking and understanding using classical computer vision approaches and deep learning.
MIT License
54 stars 16 forks source link
computer-vision deep-learning detectron2 opencv python pytorch

BasketTracking

Tactics and statistics in professional basketball teams are widespread. This operation can be optimized and speed up by an automatic computer vision system. We aim at developing such system capable of action tracking and understanding in basketball games using computer vision approaches and ideas alongside deep learning models such as Detectron2. Our system tracks player trajectories from videos and rectifies them to a standard basketball court, showing also the player who owns the ball.
(disclaimer: we implemented some components with old fashion CV techniques, e.g. ball detection with template matching, the performance was not the goal of the project)

Table of Contents

Demo

https://user-images.githubusercontent.com/28055473/235509681-c2008686-43b4-40a4-a64d-e642714d84ff.mp4

Dependencies

Usage

The system can be executed from the main.py.