🆚 Compare the three matches
The same measurements for every match. Home team first.
Across the matches
How it was made
One TV camera, open-source software and a laptop. No GPS vests, no extra cameras, no tracking company.
- Video. The full TV broadcast of each match: one main camera that pans and zooms, plus close-ups, replays and graphics.
- Players. Twice per second an open-source detector (RT-DETR) finds every person in the picture. Close-ups and replays are recognised and skipped.
- Pitch position in metres. Pitch lines in the picture are matched to the real pitch, measured from satellite images, so each player's feet become pitch coordinates.
- Teams. Each player is assigned to a team or the referees by shirt colour, then followed from frame to frame.
- Clock, half-time and goals are read from the on-screen score graphic with text recognition.
- Where the play was. The TV camera follows the ball, so the point it aims at is used as a stand-in for the ball.
- Correcting for the camera. The camera usually shows only about 6 of a team's 10 outfield players. Team length, width, line height and average positions are corrected for the players off screen. The correction was tested on complete tracking data from professional matches (Metrica Sports), viewed through the real camera views from these broadcasts.
What was checked
- Player positions on the pitch: median error 0.8 m on frames held out for testing (Vipers v BUL).
- Team labels: 36 of 36 randomly sampled players right (Vipers v BUL).
- Team length and width over a half: within about 2 m and 1 m after correction. Without correction, measuring only the players in view makes a team look 9 m shorter and 6 m narrower.
- Average positions: median error 3.3 m.
- Clock, half-time and goals read automatically matched the values read by hand for Vipers v BUL.
Limitations
- Three matches. The pages describe these matches only, not Ugandan football in general.
- Only what the camera shows. Players outside the TV picture are not tracked; the replay shows only the part of the pitch on screen. Team shape and positions are corrected for this; individual moments are not.
- No ball tracking. The ball is only a few pixels wide in wide shots. "Where the play was" uses the camera's aim, which follows the ball closely but not exactly; the exact offset was not measured.
- No player names. Automatic shirt-number reading got 1 of 28 names right at this video quality, so positions are places in the team shape, not named players.
- Shots for one match only. Shots for Vipers v BUL were tagged by hand. Automatic shot detection was not reliable enough, so the other two matches have no shot data. Passes, possession and expected goals (xG) are not available.
- Team labels unchecked for two matches. For KCCA v Maroons and Police v KCCA the team labels were not checked by hand. Goalkeepers are not separated, and some players in heavy shadow have no team label.
- Less data for Police v KCCA. The camera picture could be matched to the pitch in 36% of frames, against 60–64% for the other matches.
- Correction from European data. The correction for the camera view was tested on European professional matches, not on Ugandan ones.
- Goals timed to about ±10 s from the score graphic; scorers are not identified.
Credits
Created by Charles Gava: concept, analysis, software and this site.
Footage: Uganda Premier League TV broadcasts. This site shows only data derived from them: no video, no images of people, no player names. Validation data: Metrica Sports sample tracking data. Software: RT-DETR, PnLCalib, Apple Vision, Python. Built November 2026.