Skip to content
πŸ€ Visualization of NBA games from raw SportVU data logs
Python
Branch: master
Clone or download
Latest commit f7d4cf2 Sep 19, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data/2016.NBA.Raw.SportVU.Game.Logs Added match data, pt. 4 Sep 19, 2016
examples
Ball.py Added projects files Aug 5, 2016
Constant.py Speeded up .gif examples Aug 5, 2016
Event.py Speeded up .gif examples Aug 5, 2016
Game.py Added projects files Aug 5, 2016
Moment.py Added projects files Aug 5, 2016
Player.py Added projects files Aug 5, 2016
README.md Added match data Sep 19, 2016
Team.py Added projects files Aug 5, 2016
court.png Added projects files Aug 5, 2016
main.py Fixed README.md Aug 5, 2016

README.md

NBA Player Movements

This is a script for visualization of NBA games from raw SportVU logs.

If you admire both Spurs' and Warriors' ball movement, Brad Stevens' playbook, or just miss KD in OKC you'll find this entertaining.

Examples

Spurs Warriors Celtics Durant

Usage

  1. Clone this repo:
$ git clone https://github.com/linouk23/NBA-Player-Movements
  1. Choose any NBA game from data/2016.NBA.Raw.SportVU.Game.Logs directory.

  2. Generate an animation for the play by running the following script:

$ python3 main.py --path=Celtics@Lakers.json --event=140
required arguments:
  --path PATH    a path to json file to read the events from

optional arguments:
  --event EVENT  an index of the event to create the animation to
                 (the indexing start with zero, if you index goes beyond out
                 the total number of events (plays), it will show you the last
                 one of the game)
  -h, --help     show the help message and exit
You can’t perform that action at this time.