Git Product home page Git Product logo

baskettracking's Introduction

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

demo.mp4

Dependencies

Usage

The system can be executed from the main.py.

  • main.py: Initializes classes and loads or rectifies the needed images
  • video_handler.py: Manages the frame reading procedure from the input video.
  • rectify_court.py: Produces homographies, rectified images, panoramas.
  • ball_detect_track.py: Detects and tracks the ball
  • player_detection.py: Detects and tracks the players
  • player.py: Contains the class Player.
  • tools: Helper functions.
  • resources: Contains template images, input video.

baskettracking's People

Contributors

francescovannoni avatar crissherban avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.