Camera Ball

Webcam-driven physics POC. MediaPipe selfie segmentation isolates you from the background, an HSV filter extracts a chosen color within that region, and the resulting binary mask is fed into a chamfer distance transform. The falling ball samples the SDF each frame and bounces off any colored pixels under camera.

camera-ball POC · 640×480
camera: idle
segmenter: loading
tip: click the camera feed to sample a color
346° → 0° → 14°
hue
tolerance
±14°
sat min
0.45
val min
0.25
purity
0.22
morph close
gravity
1400
normal damp
0.82
tangent damp
0.96
jitter
0.06
min speed
80
sub-steps
ball size
28px
show video
show mask
person only