Skip to content

AI & MLPrivate

Basketball APP

An on-device computer-vision shot tracker: point a phone at the hoop and get makes, misses and FG% in real time.

Category
AI & ML
Status
In development
Period
Aug 2026 – Oct 2026
Commits
1,911
of real makes detected (134/157)
85%of real makes detected (134/157)
mAP50 of the selected detector
0.862mAP50 of the selected detector
latest release
v2.45.2latest release
commits across v1 and v2
1,911commits across v1 and v2

Overview

A shot tracker built by a basketball player. The phone watches the rim, a detector finds the ball, rim and net, and a pure-TypeScript pipeline decides make or miss, then turns the session into stats, drills and streaks. Version 2 is a from-scratch rebuild in its own repository: the polished app first, then the detection engine one verified piece at a time. Every model or pipeline change has to pass a written gate before it counts, and the camera frames never leave the phone.

What I built

  • Trained and compared two object-detection models on 377 frames I labelled from my own footage; the selected one reached 0.862 mAP50.
  • Exported FP32, FP16 and dynamic-range INT8 models (2.4–5.3 MB) and verified the compressed ones stay within 0.01 mAP of FP32.
  • On 347 labelled real shots, the tuned pipeline catches 134 of 157 makes and calls only 8 of 190 misses a make; reported FG% 45.9% against a true 45.2%.
  • A full app around it: live, drills, history, trends, calibration and profile screens, a 24-drill catalog, on-device SQLite history, portrait and landscape layouts.
  • My own tooling: browser labelling tools, Colab training notebooks, CI on every push (typecheck, lint, 133 test files, expo-doctor), a Claude Code skill and a daily QA robot.

What's next

The detector is selected and the pipeline is tuned on real shots. Next up: connecting the model to the live camera and bringing real-time tracking to every court.