Meta Global AI Developer Hackathon · Indie Developer track
One camera.
Real movement data.
CourtSense turns a tennis coach's ordinary training video into distance, speed, court position and a heatmap for each player. Meta SAM 3.1 tracks the players, and a Muse Spark agent answers the coach and checks every number it gives.
The problem
Coaches film every practice. Then they can only watch it.
Knowing how far a player ran, how fast, and where they stood usually takes tracking systems that most clubs can't afford. Our coach has one camera behind the baseline. CourtSense works with exactly that.
How it works
From the coach's video to the court in meters
-
1
Upload the session
The coach picks the part of the video to analyze. One streamed SAM 3.1 request finds both players and tracks them frame by frame. A 12-minute session is 10,688 frames and costs about $2.14.

-
2
Click four court points
Four clicks where the singles lines cross fix a homography. From then on every footstep is a position on the court in meters, measured from the center of the near baseline (the singles court is 8.23 m wide and 23.77 m long).

-
3
Read the numbers
Distance, average and peak speed, time behind the baseline, at the baseline, mid-court and at the net, the left/center/right split, and a heatmap for each player. When a measurement is rough, the value is marked with ~ instead of looking exact, and zone shares come with a range.


-
4
Ask the coach assistant
A Muse Spark agent picks its own tools, jumps the video to the moment it talks about, and can watch that clip itself. The coach can type the question or say it. Every number in its answer is checked against the data before the coach sees it, and so is every number in the coach report.

-
5
Get the report
After each session Muse Spark writes a short report from measured numbers only, in English or Turkish, our coach's language.

-
6
Draw the practice card
The coach writes a goal for the next practice, and Muse Image draws it as a drill on a top-down court, starting from where the player mostly stood. The picture holds no numbers; the numbers stay in the caption, from the measurements.

One real session
What CourtSense measured
From our coach's training session. With a low camera the net hides the far player's feet, so the far player's numbers stay marked as rough, with ranges. Errors are measured against feet marked by hand. Details are in the repository.
Inside the coach assistant
It shows its work, and it can't make numbers up
Where did Player A run fastest? Show me that moment and describe what happens.
- Looking for moments: fastest moments (Player A)
- Jumping the video to 6:44
- ▶ 6:44 · Player A fastest run
- Watching 5 s from 6:44
- Reading the metrics (Player A)
- Checking the answer
Player A's fastest 1-s run was at 6:44 at 3.81 m/s.
✓ Verified · 5 steps · ~$0.019
A real run, recorded in the app. The agent takes one tool per turn, for up to eight turns:
get_metricssession metrics per player, with reliability notesfind_momentsfastest runs, longest runs and visits to the net, in video timeminute_breakdownmeters per minuteshow_momentjumps the coach's video to a timelook_at_clipcuts 2–8 seconds and asks Muse Spark what happensanswerthe final answer: every number is listed as a claim and checked against the session's data, or it goes back to the model
Meta AI inside
What each Meta model does here
| Meta model or package | What it does in CourtSense |
|---|---|
| SAM 3.1 | Finds both players from the text prompt "tennis player" and tracks them frame by frame through a session, in one streamed request through the Meta Model API. |
| Muse Spark 1.3 | Runs the coach assistant: picks its tools, watches short clips with video input, answers in English or Turkish. Also writes the coach report. |
| Muse Voice Transcribe | Lets the coach ask the assistant by voice, in English or Turkish. The words land in the question box to check before asking. |
| Muse Image | Draws the coach's goal for the next practice as a top-down drill card. The picture holds no numbers; the caption's numbers come from the measurements. |
@meta-sam/parser | Reads SAM 3.1's streamed output into boxes and masks per frame. |
@meta-sam/react, @meta-sam/graphics | Play the session in the browser with each player's mask drawn in their color. |
Built for a real coach
Made with our coach's own sessions
I film all our practice sessions, but until now I could only watch them. With CourtSense I see in numbers how far a player runs and where they stand on court. From now on I'll plan our sessions around this data.
Our coach, in a voice note (translated from Turkish). The session was filmed by our coach, with both players' consent.
Not a generic sports analyzer.It is built for our own coach, with SAM 3.1 at its core.
Honest limits
What it doesn't do yet
No ball tracking
In our footage SAM 3.1 confused ceiling lights and signs with the ball, so there are no shot or score statistics yet.
Rough far-side depth
With a low camera the far player's forward and back position is rough: about 1 m of error on hand-marked frames. The app marks it and gives zone ranges instead of guessing. Left and right stay reliable.
Camera drift
Slow drift of the camera's gimbal over a long session is not compensated yet.