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.
- Choose any NBA game and download corresponding raw SportVU game logs (.json file) from this repo.
- Clone this repo:
$ git clone https://github.com/linouk23/NBA-Player-Movements
- 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