Building a Basketball Tracking System that Turns Game Footage into Tactical Insights

  • 94% precision detecting players on game footage
  • 30/60 fps video support with automatic frame-time alignment
  • ~70% fewer identity switches with ReID
  • ~30 min from final buzzer to report

College and high school coaching staffs film every game, but most of that footage gets watched once and tagged by hand, if anyone tags it at all. LITSLINK built a basketball tracking system for a US sports analytics company that detects every player and the ball, keeps identities stable through screens and a crowded paint, and turns raw video into speed, spacing, and shot data. Coaches now open the numbers the same night instead of waiting until Thursday for an analyst's spreadsheet.

A laptop showing a basketball game summary with the score by quarter, team pace, player stats and a possession replay beside the video, next to a phone with one player's speed curve, distance, sprints and shot chart

|  

Project Details

The client is a US sports analytics company selling video breakdowns to college programs, high schools, and club teams. Its analysts tagged every game by hand, which capped output at about 12 games a week and kept the business from growing past 40 teams. They asked LITSLINK for basketball player-tracking technology that could work with footage from any gym camera and deliver tactical data to coaches without an analyst in the loop.

CLIENT
US sports analytics company (NDA)
INDUSTRY
Sports
SOLUTION
Real-time basketball tracking for players, ball, and tactics
SERVICE
Computer Vision Development + ML Engineering + Backend Development + Mobile App Development
PLATFORM
Web dashboard, iOS and Android app (React Native), GPU processing server
SCOPE
8 specialists: CV models, tracking pipeline, analytics backend, coach app
DURATION
~9 months
LOCATION
US

|  

Business Challenge: Turning Game Footage into Tactical Data

A 40-minute college game runs close to two hours on camera once timeouts and halftime are counted. Ten players move at full speed inside a 94 by 50 ft court the whole time, and the stats coaches care about (who guarded whom, how fast a team got back on defense, where the shots came from) live in that movement, not in the box score. Player performance in that sense was never measured, only remembered.

Before the project, the client’s five analysts logged possessions, shot locations, and lineups by scrubbing through each clip. One game took 6 to 8 hours. Coaches usually got their stats three or four days later, when the next opponent was already on the schedule. Consistency drifted too. When two analysts tagged the same game, roughly 1 in 8 events didn’t match, and nobody could say which version was accurate. Capturing more depth, like spacing or closeout speed, was out of the question at that pace.

Clock icon

Manual Tracking Doesn't Scale

Manual stat tracking ate 6 to 8 analyst hours per game. Growing from 40 to 150 teams would have meant hiring about 15 more analysts, and turnaround would still sit at three days.

Warning icon

Players Look Alike on Camera

Same jerseys, similar builds, constant screens. In a crowded paint, a tracker that only follows boxes swaps identities, and one swap ruins a player's stats for the rest of the game.

Exchange icon

A Small, Fast Ball

The ball covers well under 1% of a 1080p frame, blurs on hard passes, and disappears behind hands. Lose it for 10 frames and the possession, the pass chain, and the shot record all break.

|  

Technologies Behind the Player and Ball Tracking Pipeline

|  

Our Solution: Computer Vision for Basketball Player Tracking

The client’s cameras were not broadcast rigs. Most footage came from one elevated camera near half court, mounted on a gym wall or held by an assistant coach, at 30 or 60 fps. So the first design decision was simple: work from a single ordinary camera and never ask a school to buy hardware. The client had already looked at AI sports tracking setups built around fixed multi-camera installs, and their customers could not afford them.

Our computer vision development team built the pipeline in four layers. RT-DETR detects players, referees, and the ball in every frame. A ReID-based multi-object tracker links those detections into tracks and re-attaches the right identity after an occlusion. A color-based team classifier sorts players by jersey, and a court homography maps every pixel position to real court coordinates in feet.

From those coordinates, the analytics layer calculates speed, distance, spacing, and shot locations, then pushes about 40 metrics per player per game to the coach dashboard and the mobile app. A 30 fps game runs live on one NVIDIA GPU, which gives assistants real-time feedback on the bench during scrimmages. 60 fps footage, which the client preferred for ball tracking, finishes about 30 minutes after the final buzzer.

Coaches didn’t want another piece of basketball stat tracking software to babysit. They wanted answers to questions they already ask in every film session: which shooters are consistent from the corner, which lineups win the rebounding battle, where the defense breaks down. Each feature below maps to one of those questions.

01

Real-Time Player Detection

RT-DETR finds all 10 players plus referees in every frame at about 94% precision on held-out game footage, including blurred fast-break frames and low gym lighting. Benches and fans outside the court lines are filtered out, which removes most of the false positives presented by a packed gym.

02

Ball Tracking Across Passes and Shots

A small-object detection head and a trajectory model fill the gaps when the ball hides behind hands. Ball tracking stays continuous on about 95% of possessions, which keeps pass chains and shot tracking intact.

03

Persistent Player IDs with ReID

Appearance embeddings re-link a player after screens, pileups, and substitutions. Identity switches dropped by about 70% against a motion-only baseline, to roughly 1 per 10 minutes of play.

04

Team Identification by Jersey Color

The classifier learns both teams' colors in the first 30 seconds of footage. It handles home and away kits, practice pinnies, and opponents in similar shades at about 97% accuracy, providing a clean split even when lighting factors change mid-game.

05

Speed and Positioning Analytics

Court homography turns pixels into feet. Speed lands within about 0.5 mph of hand-timed measurement, and every player gets total distance, sprint counts, and average court position for each game.

06

Tactical Insights for Coaches and Analysts

Shot charts with shooting percentage by zone, spacing maps, lineup splits, and transition speed sit on one screen. Staff can filter by quarter, lineup, or player, spot patterns over a season, and leave comments on any clip.

Planning a sports tracking product of your own?

Request a Similar Solution

— Scrum Methodology

|  

Project Journey

The project ran in two-week sprints, starting with a feasibility check on 60 hours of the client’s real gym footage rather than clean broadcast clips. Early sprints chased detection quality, the middle stretch went to identity and ball tracking, and the last sprints covered the dashboard, the app, and rollout across six courts. Every sprint ended with a demo on a game the models had never seen, so the client could evaluate progress on real footage rather than a slide.

0
Week sprint cycles
0
Sprints to reach live multi-court deployment
0
Core team members (CV engineers, backend devs, product, QA)
>90%
of sprints delivered on time during pilot seasons

|  

How Our Basketball Stat Tracking App Works

1
Ingest game footage
  • A coach uploads a recording from the app, or a gym camera streams it. The system reads 30 or 60 fps video and aligns frame timestamps, so variable phone frame rates don't skew speed math.
2
Detect players and the ball
  • RT-DETR runs on each frame and returns boxes for players, referees, and the ball. Anything outside the court lines gets dropped.
3
Keep player identities
  • The ReID tracker matches appearance and motion to keep each player on one ID through screens, collisions, and substitutions.
4
Assign teams by jersey color
  • The classifier samples jersey pixels, clusters them into two teams plus referees, and locks assignments for the game.
5
Calculate speed and positions
  • Homography maps every position to court coordinates. Speed, distance, spacing, and shot location are set per player and per possession.
6
Deliver tactical insights
  • Stats, shot charts, and tagged clips land in the dashboard and the app, ready for the next film session.

|  

Scrum Process Flow

Machine learning development on sports video rarely moves in a straight line, because a model that scores well in one gym can stumble in the next one under different lights. Two-week cycles let the client’s analysts check fresh output from new courts 18 times before full rollout. Three of those reviews changed priorities outright, including the call to move basketball tracking (ball first, then players) ahead of the coach dashboard.

A laptop showing a feasibility test: players, referees and the ball boxed and labelled on gym footage, with detection precision per class and the identity-switch rate beside it
Inside Each Sprint
Plan Design Develop Test Review
Daily Scrum
15-min sync every morning
Retrospective
Inspect & adapt process
Sprint Review
Demo to stakeholders
Increment
Shippable product update

|  

How We Delivered Our Basketball AI Tracker

1
Scope & Feasibility
  • We ran baseline detectors on 60 hours of the client's footage from 11 gyms to determine what one camera could and couldn't capture before committing to a plan.
2
Pilot Metrics & Priorities
  • Together with the client we set pass or fail targets: 90%+ detection precision, under 2 ID switches per 10 minutes, and a report within an hour of the game.
3
Model Training & Tuning
  • The team annotated about 85,000 frames and fine-tuned RT-DETR and the ReID model on real conditions: low light, motion blur, crowded benches, and glossy floors.
4
System Integration & UI Development
  • GPU workers, the Node.js API, the web dashboard, and the React Native app were wired into one flow, from upload to the coach's screen.
5
Testing, Feedback & Iteration
  • Analysts compared system stats with their own tagging on 40 games. Every mismatch went back into the next sprint as a labeled example.
6
Rollout, Training & Support
  • We launched on 2 pilot courts, expanded to 6, ran onboarding sessions for coaching staffs, and still monitor model quality game by game.

|  

UI/UX Design

Coaches watch film at night, often on a laptop at the kitchen table, and they have no time to learn new software. We interviewed 9 coaches and 4 analysts before drawing a screen. The same request came up every time: show me the play first, then the number. Analyzing a chart without the clip behind it, they said, is how staffs lose a room.

The dashboard opens on a game summary with score by quarter, team pace, and five key stats per player. Below it sits a court view where any possession replays as dots moving on a top-down court, synced with the video in a split screen. Click a player and the panel switches to that player’s speed curve, distance covered, and shot chart. Makes and misses use shape as well as color, so a printed scouting report still reads in black and white.

The React Native app is built for the bench and the bus. Assistants upload footage, check processing status, and send clips to players in two taps. Players see only their own clips and their coach’s comments, which made the app easy to approve for schools with strict data rules. The system doesn’t grade shooting form or tell a player how to improve a jumper. That knowledge stays with the coach, and the app simply puts the right clip in front of them at the right level of detail.

A laptop showing the dashboard: score by quarter, team pace, a table of player stats, and a possession replayed as dots on a top-down court synced with the video
A tablet showing one player's page: points, rebounds, assists and minutes, a speed curve across the four quarters, distance covered, sprints, and a shot chart where makes and misses differ by shape as well as colour
Two phones: one uploading game footage with the processing steps and progress, the other sending a clip to a player with a coach comment box and a send button

— Timeline

|  

Five Phases, Clearly Defined

Discovery & Feasibility 3 weeks
Data & Model Prototyping 6 weeks
Agile Development ~5 months
QA & Field Testing 4 weeks
Launch & Support Ongoing

Discovery & Feasibility

  • Auditing 60 hours of footage from 11 gyms
  • Listing camera angles, frame rates, and lighting
  • Agreeing which stats coaches need first

Data & Model Prototyping

  • Annotating the first 30,000 frames
  • Benchmarking RT-DETR against two YOLO-family detectors
  • Testing ReID embeddings on look-alike players

Agile Development

  • Building the GPU pipeline and Node.js API
  • Adding team classification, homography, and speed math
  • Shipping the web dashboard and React Native app

QA & Field Testing

  • Comparing system output with analyst tagging on 40 games
  • Load testing at 25 parallel game uploads
  • Checking 30 and 60 fps footage from phones and fixed mounts

Launch & Support

  • Pilot on 2 courts, then 4 more over 6 weeks
  • Onboarding sessions for 14 coaching staffs
  • Monthly retraining on newly labeled clips

|  

Results

Before

  • ✕6 to 8 analyst hours to tag one game by hand
  • ✕About 12 games a week across a five-person analyst team
  • ✕Stats reached coaches 3 to 4 days after the game
  • ✕Roughly 1 in 8 tagged events disagreed between two analysts
  • ✕No speed, distance, or spacing data at all

After

  • ✔About 30 minutes from final buzzer to a full game report
  • ✔150+ games a week, with analysts reviewing instead of tagging
  • ✔Stats ready the same night, before the next practice
  • ✔~94% detection precision and ~97% team assignment accuracy
  • ✔40 metrics per player per game, including speed, distance, and shot charts
A monitor showing season results: time from the final buzzer to a full report, games a week, player detection precision, team assignment accuracy, fewer identity switches, metrics per player per game, and teams served before and after

Impact of the Basketball Tracking System in Competition

For the client, the economics of the product changed. Tagging used to be the biggest cost and the hard ceiling, since every new team meant more analyst hours. Analysts now spend their time on quality review and custom scouting reports, which the client sells as a premium tier, and the customer base grew from about 40 teams to 110 in the first season without new hires.
For coaches, the edge shows up in the days between games. Staffs that used to start film review on Wednesday now plan Monday practices and drills with data from the weekend, and several college programs use speed and distance numbers to manage minutes on back-to-back days. Players develop faster when they see their own clips the next day, and shooters who miss from the same spot three games running now hear about it in week one, not at midseason. Season renewals reached about 85%, and the client now runs the same pipeline on training sessions, not just competition.
Objective Data
Faster Decisions
Smarter Player Development

Want game footage that turns into stats by morning?

Request a Similar Solution

— Verified Reviews

Our Reputation on Top Platforms

LITSLINK holds a 4.8 rating on Clutch and GoodFirms, with Top Developer badges on both. Clients who bring us AI development and computer vision work tend to mention the same three things: engineers who understand the data, honest estimates, and steady communication through long engagements.

Clutch B2B Ratings & Reviews

4.8

78 reviews

Top Developer
GoodFirms Research & Reviews Platform

4.8

32 reviews

Top Company
Behance Creative Portfolio Platform

150+

design projects

View projects

Have an AI Sports Project in Mind?

Need a basketball tracking system, shot tracking for an app you already run, or the sports analytics player tracking AI your coaches keep asking for? We also build basketball analytics tools for schools, clubs, and the wider training community. Tell us what footage you have and which questions the stats should answer, and a LITSLINK specialist will reply within 48 hours. You can also hire AI developers to extend your current team.

Next steps:
1
LITSLINK specialist reviews your request and contacts you to discuss the details;
2
If needed, we can sign an NDA before moving forward;
3
We send a project proposal – estimates, timeline, and team CVs included;
4
After launch, we stay on for any updates your product needs.
⚡ 48h Response
💙 1540+ Projects