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.

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.








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.

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.

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.

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.
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.
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.
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.
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.
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.
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.
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.
— 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.
How Our Basketball Stat Tracking App Works
- 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.
- RT-DETR runs on each frame and returns boxes for players, referees, and the ball. Anything outside the court lines gets dropped.
- The ReID tracker matches appearance and motion to keep each player on one ID through screens, collisions, and substitutions.
- The classifier samples jersey pixels, clusters them into two teams plus referees, and locks assignments for the game.
- Homography maps every position to court coordinates. Speed, distance, spacing, and shot location are set per player and per possession.
- 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.

How We Delivered Our Basketball AI Tracker
- 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.
- 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.
- 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.
- 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.
- Analysts compared system stats with their own tagging on 40 games. Every mismatch went back into the next sprint as a labeled example.
- We launched on 2 pilot courts, expanded to 6, ran onboarding sessions for coaching staffs, and still monitor model quality game by game.
— Timeline
Five Phases, Clearly Defined
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

Impact of the Basketball Tracking System in Competition
— 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.
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.
Thank you for your message. It has been sent.





















