Skip to content

🏀 Visualization of NBA games from raw SportVU data logs

Notifications You must be signed in to change notification settings

HeConnor/NBA-Player-Movements

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NBA Player Movements

This is a script for visualization 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. Choose any NBA game and download corresponding raw SportVU game logs (.json file) from this repo.
  2. Clone this repo:
$ git clone https://github.com/linouk23/NBA-Player-Movements
  1. Generate an animation for the play by running the following script:
$ python3 main.py [email protected] --event=140
required named arguments:
  --path PATH    a path to json file to read events from

optional arguments:
  --event EVENT  an index of the event to create animation to (the indexing
                 start with zero, if you index goes beyond out the total
                 number of events (plays), we will show you the last one of
                 the game)

About

🏀 Visualization of NBA games from raw SportVU data logs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%