PitchKit
API Reference@pitchkit/data-providersmetricaInterfaces

MetricaFrame

Defined in: packages/data-providers/src/metrica/types.ts:131

One tracking frame, at 25 frames per second, with both teams merged.

Metrica ship each team in its own file. The two are row-aligned (every frame appears in both, in the same order) and both carry the same ball columns.

Properties

PropertyModifierTypeDescriptionDefined in
ballreadonlyMetricaPoint | nullnull when the ball wasn't tracked, which is often: about 40% of frames in both sample games, mostly while play is stopped.packages/data-providers/src/metrica/types.ts:140
Framereadonlynumber-packages/data-providers/src/metrica/types.ts:133
Periodreadonlynumber-packages/data-providers/src/metrica/types.ts:132
playersreadonlyreadonly MetricaTrackedPlayer[]The players on the pitch in this frame, home side first. A player whose position is NaN (a substitute not yet on, or one already off) is left out rather than included with null coordinates.packages/data-providers/src/metrica/types.ts:146
Time [s]readonlynumberSeconds since kick-off, continuous across both halves.packages/data-providers/src/metrica/types.ts:135

On this page