← (All work)(Project 01 — ReleaseFrame + BatSwingVision)

LA Dodgers

Computer-vision scouting for the Dodgers — on the mound and at the plate.

Role
ML & full-stack engineering
Year
2025 — 26
Type
Computer vision
Links
Private
LA Dodgers

For the LA Dodgers I built a computer-vision scouting toolkit from ordinary video. On the pitching side, ReleaseFrame finds the exact frame the ball leaves the hand and measures arm angle and arm slot. On the hitting side, BatSwingVision tracks the bat, ball and hitter through every swing. Both feed a Dodgers-branded scouting dashboard with pitcher profiles.

(Stack)
  • PyTorch
  • ResNet18 + BiGRU
  • YOLOv8
  • ByteTrack
  • MediaPipe
  • OpenCV
  • FastAPI
  • React
  • Vite

The problem

Release point and swing mechanics are some of the most useful things a scout can know — and some of the most tedious to measure by hand. You scrub frame by frame through every clip, and at normal frame rates the moment that matters lives inside one or two frames. Sensors and high-speed rigs help, but most footage is just video.

Pitching — ReleaseFrame

Each clip is split into overlapping windows. A ResNet18 backbone embeds every frame, and a two-layer bidirectional GRU reads the sequence and scores each frame as "release" or "not release". At the release frame, a pose model (YOLOv8-pose / MediaPipe) places the shoulder, elbow and wrist to compute arm angle and classify arm slot. A FastAPI server exposes /analyze, /history and /health.

Hitting — BatSwingVision

A modular pipeline: YOLOv8 detects players, bats and balls; ByteTrack links detections into tracks across frames; MediaPipe estimates the hitter's pose; a swing-analysis module splits the swing into phases and computes metrics; and a visualisation step renders annotated video and charts.

Decisions that mattered

  • Hand-labelled ~500 pitching clips with their true release frame.
  • Saved the best model on frame error (MAE), not BCE loss — the metric that actually matters.
  • Weighted the release class 8× because only one frame per clip is a release.
  • Tracked the bat across frames instead of trusting per-frame detection — it's thin, fast and blurred.
  • Worked only from existing video, so scouting needs no extra hardware.
(Read the story) Scouting the Dodgers, One Frame at a Time May 2026 · 9 min read →