Menu

How I Built Browser-Local Face Geometry With MediaPipe and Canvas
📰

How I Built Browser-Local Face Geometry With MediaPipe and Canvas

DEV Community: computervision·yifei Huang·8 days ago
#gE7WyYtM
Long article (962 words) — no AI summary yet.
Reading 0:00
15s threshold

I built FaceScoreLab around one constraint. A portrait selected for analysis should stay in the browser that opened it. That decision shaped the whole pipeline, from landmark detection to the side-by-side symmetry images. FaceScoreLab v7, live as of November 23, 2026, runs MediaPipe Face Mesh in the browser, uses its 478 facial landmarks to calculate geometry after correcting for head roll, and draws the symmetry composites on HTML Canvas.

What I wanted from the project was something I could explain by walking through what the browser actually does. Given an image, where does the model run? What does rotating a set of coordinates fix? What can a reader see in the network log? Those questions were more useful to me while building than trying to make a score look more precise.

From a selected photo to a set of ratios

The browser opens the selected image locally and passes a working frame to MediaPipe. The detector returns landmark coordinates.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.