Browser-based face landmark measurement uses WASM and roll correction for accurate angles
A face overlay can appear correctly aligned on a photo yet report the wrong eye angle, because the measured geometry follows the camera frame rather than the face. The article describes running MediaPipe Face Landmarker locally in the browser so the selected photo is never uploaded, then converting its 478 landmark points into predictable measurements. It recommends working in pixel space rather than normalized coordinates, since the two axes scale differently and distort angles. It also proposes using the bridge-to-chin line as a vertical reference to level the face before measuring eye angles. Finally, it suggests moving inference into a worker thread, reusing the model, and testing CPU and GPU paths separately to keep the interface responsive.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in