✈   BILAL HASANRETURN TO THE HANGAR ↗

SPORTS TECHNOLOGY · COMPUTER VISION

Cricket Shadow Coach

Browser-based cricket practice with pose tracking, batting-drill comparisons, and guided feedback.

A project by Bilal Hasan · Computer Science at Whitworth University · Spokane, Washington

VIEW SOURCE ON GITHUB ↗VIEW PROJECT DEMO ↗

The idea

My cricket interests extend from playing with the Spokane Spartans to building tools for practice. Cricket Shadow Coach uses a webcam to help players inspect their movement and compare batting drills with reference motions.

What the app does

The app supports five batting drills: cover drive, straight drive, pull shot, defensive block, and flick shot. A guided cover-drive practice compares two sets of five attempts, with a coaching cue between sets and a progress dashboard for completed sessions.

How it works

MediaPipe Pose runs in the browser and extracts body landmarks. A FastAPI backend processes joint angles, smooths and resamples the motion, and uses Dynamic Time Warping to compare a stroke with a reference. The interface displays scores, tracking quality, and coaching feedback.

Privacy and continuity

Video stays on the device; analysis uses landmark coordinates. Practice history stays in the same browser and completed summaries can be downloaded. Left- and right-handed batting and separate bowling-arm selection support different setups.

Limits that matter

Movement scores are practice comparisons, not measurements of a player’s overall ability. The bowling-action screen is indicative: a single camera cannot provide an official legality decision. Synthetic evaluation checks do not establish accuracy on independent real players.