GithubHelp home page GithubHelp logo

pauldevos / football_player_recognition Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexramey/football_player_recognition

0.0 1.0 0.0 647.09 MB

Python 0.80% HTML 94.44% Jupyter Notebook 4.73% MATLAB 0.03%

football_player_recognition's Introduction

Football Player Recognition

This project will identify the jersey numbers of American football players in broadcast footage using a two stage approach. The first stage will be a pre-trained Mask R-CNN that will detect players, and the second stage will be a fine-tuned Faster R-CNN to extract digits from the player bounding boxes.

Usage

# From repository root directory
python main/main.py <INPUT_VIDEO_PATH>

Football Dataset

  1. Capture frames from two Alabama football games (1280 x 720 resolution), one with home uniforms and the other with away uniforms.

  2. Do a pass over the frames, removing ones that do not contain at least one Alabama player with a completely visible jersey number.

  3. Run a pre-trained Mask R-CNN to extract person bounding boxes from the frames.

  4. Pad the bounding boxes with 0s (blackness) to create square images then re-scale to size 256 x 256. Discard non-Alabama players.

  5. Label the digits with VGG Image Annotator (VIA) tool.

For more details, see data folder, which holds its own README.md file.

Training Approach

  1. Start with the same pre-trained Mask R-CNN as above. As shown in this tutorial, it is possible to train the Mask R-CNN for object detection using a dataset that only contains bounding boxes.

  2. Evaluate performance on football_player_test for the following three scenarios:

    1. Fine-tuning with Street View House Numbers (SVHN) dataset
    2. Fine-tuning with football_player_train
    3. Fine-tuning with SVHN + football_player_train
  3. The best performing model is hereby referred to as jersey_number_detector.

Next Steps

  1. Improve speed by pipelining the two stages
  2. Synthesize the discrete digits into actual jersey numbers (i.e. '2' and '9' --> '29')
  3. Filter out away team jersey numbers based on color, which will vary per game
  4. Filter out sideline player noise
  5. Supplement the jersey numbers with roster information (player names)
  6. Add game context using OCR on the scoreboard

football_player_recognition's People

Contributors

alexramey avatar

Watchers

James Cloos 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.