Skip to content

rondo-labs/PitchCore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PitchCore

Shared foundation types and I/O for football/soccer analytics.

PitchCore provides the common data models, coordinate systems, I/O adapters, and pitch visualisation primitives shared by the Pitch analytics suite:

Installation

pip install pitch-core

# With optional extras
pip install pitch-core[kloppy]   # kloppy I/O adapters
pip install pitch-core[viz]      # Plotly visualisation

Quick Start

from pitch_core import FrameRecord, PitchSpec, from_tracking

# Load tracking data via kloppy
from kloppy import statsbomb
dataset = statsbomb.load_open_data()
sequence = from_tracking(dataset)

# Access frames
frame = sequence[0]
print(frame.positions.shape)  # (N, 2)

License

GPL-3.0-only

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages