Skip to content
Shelbe Yousey
← Back to work

HoopBuddy

Turning high school basketball game film into data: player positions mapped onto a 2D court, and made baskets detected.

Role
Solo: research, training and implementation
Timeline
Aug 2024 → May 2025
Type
Computer vision · Research
First attempt: a YOLO bounding box drawn around the key
1Bounding box
Second attempt: separate detections for the lane, free-throw and end lines
2Line detection
Final approach: a pose model marking landmark points along the key
3Keypoint pose
custom YOLO models
12custom YOLO models
key points per frame for the homography
8key points per frame for the homography
hand-labelled examples behind a typical model
20+hand-labelled examples behind a typical model

What I built

  • Player positions mapped onto a 2D court through homography from eight detected key points.
  • Ball tracked through play, with made baskets detected.
  • Twelve custom YOLO models across ball, hoop, rim, key, lane lines, players, pose and scoring.
  • Footage hand-labelled across HS, college and NBA games so models generalise across court designs.
  • Augmentation during training to stop small (20+ example) sets from overfitting.

Built with

  • Python
  • Jupyter
  • YOLOv8
  • YOLO11
  • Pose estimation
  • Homography
  • Computer vision