Computer Vision in Sport
Year 1 Master of Sport Analytics Project
By Daylon Seakins in Sport Analytics
November 3, 2021
Original Video
This project involved using optical tracking of players in a small-sided game to generate various animations and overlays.
The original video below, a small-sided game played among students for the purpose of tracking later with local positioning system (LPS) and optical tracking technologies.
LPS Tracked Overlay
LPS tracking was used to generate a local coordinate system. Using some coordinate transformations, these were able to be overlayed back onto the video, with mixed results.
Optically Tracked Pitch Animation
A top-down view of the playing area with points representing the players for each team; pink and yellow. A team classification model was trained using the pytorch-image-repository to predict detected players’ team. A top-down animation was produced based on these results and tracked onto a local-coordinate system.
Voronoi Pitch Control Animation
Using the top-down playing area animation and predicted team classifications, a Voronoi pitch control animation was produced. This highlights the areas of the pitch that each team controls, by each player “owning” space.
Voronoi Pitch Control Overlay
An extra challenge for this assessment was to create a Voronoi pitch control overlay for the original video, see below.