⚽UPL Match Analysis

Uganda Premier League 2026/27 · built automatically from the TV broadcast

🆚 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.

  1. Video. The full TV broadcast of each match: one main camera that pans and zooms, plus close-ups, replays and graphics.
  2. Players. Twice per second an open-source detector (RT-DETR) finds every person in the picture. Close-ups and replays are recognised and skipped.
  3. 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.
  4. Teams. Each player is assigned to a team or the referees by shirt colour, then followed from frame to frame.
  5. Clock, half-time and goals are read from the on-screen score graphic with text recognition.
  6. 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.
  7. 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

Limitations

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.