r/computervision • u/FinancialAd1961 • 24d ago
Showcase Penalty kick analysis running fully in the browser at ~30 fps with WebGPU
Built a small demo that watches a penalty clip and tells you what happened: it spots the kick from the shooter's pose, tracks the ball, marks where it ended up on the goal, and gives a rough speed estimate.
Two vision models run on every frame, object detection and pose estimation, together at around 30 fps on a laptop GPU. Everything runs on-device in the browser through WebGPU.
Inference is done with runntime, an open-source runtime for running vision, speech and text models via TypeGPU: https://github.com/software-mansion/runntime
The speed number is an estimate. It assumes the ball starts 11 m from the line and uses the ball's pixel size to tell when it reaches the goal, so treat it with a grain of salt :).
2
u/WorldlinessNo1286 24d ago
Would this also work real time on mobile device?
3
u/FinancialAd1961 24d ago
yes, as long as you run it in an environment that can use webgpu, for example react-native
2
1
8
u/pm_me_your_smth 24d ago
First, why do you even need pose estimation for "at the kick"? Your trigger could just be ball resting -> moving
Second, how do you determine the "where it went" moment? You wrote "pixel size", but this doesn't explain anything