Detection Lab

Blink detection before referee automation

This page runs MediaPipe Face Landmarker locally in the browser, computes eye aspect ratio, and can optionally stream samples into the referee backend for a live match.

Camera

Live preview

Camera: startingModel: loading
BLINK
Metrics

EAR and calibration

Left EAR0.000
Right EAR0.000
Average EAR0.000
BaselineCalibrating
ThresholdCalibrating
Blink count0
CalibratedLearning baseline
Yaw0.0 deg
Pitch0.0 deg
Backend stream

Optional referee feed

Add a live `matchId` and your `userId` to stream landmark samples into the backend while a duel is running.

Local only

Events

Recent blink events

No blink detected yet. Hold still for calibration, then blink normally.