Computer vision 2023 – 2024
AI Football Referee.
A stereo-vision referee that tracks every player and the ball in 3D and scores goals automatically on a target-shaped pitch.

What it is
Target Football Referee referees football played on a target: a pitch of concentric coloured rings around a central goal, where a shot is worth more the further out it was taken. I designed and built the whole system, from setting up the stereo camera over the pitch to the tracking, the game logic and the live display.
It detects every player and the ball in 3D, works out which team each player is on from their jersey colour, follows possession, and awards points when the ball reaches the goal. It won Best Student Club Project at RIT Innovation Day, and I showed it at Machines Can See 2024 at the Museum of the Future in Dubai.
What was built
- A static ZED stereo camera set up over the pitch, with the floor as the origin so every player and the ball has a position in metres.
- 3D detection and tracking of people and the ball with the ZED SDK.
- Projection of camera-space positions onto a 9 m × 9 m top-down map of the ring-zoned pitch.
- Team classification from jersey colour using HSV masks, with a small tuning tool for calibrating the colours on site.
- Possession tracking and shot-zone logic, with goals scored 3, 2 or 1 points depending on the ring the shot came from.
- A real-time display combining the camera feed with 3D boxes, the top-down map and a live scoreboard.
In pictures


