Skip to the demo
Face-verification research

Live demoRuns in your browser

Face Verify

Add two photos and see whether the same person appears in both. Detection, landmarks, the 128-value face embedding and the decision all run in this tab through face-api.js (opens in a new tab). No photo leaves your device.

Try
Two photos of the same person, then two different people.
Look for
Moving the threshold flips the decision while the distance stays the same.
Loads
About 7 MB of model files the first time, from this site.
Note
These are smaller models than the ones in the study, so the numbers aren’t comparable.

Loading face models…

Photo A

Photo B

About the threshold: face-api.js defaults to a Euclidean distance of 0.6 on its 128-value embeddings, and a lower distance means more similar faces. It is a different embedding space from the ArcFace and FaceNet models in my research, but the trade-off has the same shape: move the threshold and you trade false acceptances for false rejections. The full comparison is in the research write-up and the repository (opens in a new tab).