Blog · 4 min read ·

How Mog Olympics Scores a Face Without Uploading It

Mog Olympics is my browser game that scores a face from 1 to 10 and ranks players on a global leaderboard. The part I care about most is how it does that without sending your face to a server.

Step 1: find the face, on your device

The camera feed never leaves the browser. Mog Olympics runs Google's MediaPipe FaceLandmarker locally, which finds 468 points on the face: the corners of the eyes, the pupils, the tip of the nose, the edges of the lips, the cheekbones, the jaw angles and the chin.

Step 2: turn points into ratios

Raw points don't mean much on their own, because they change with distance from the camera. Ratios don't. So the scoring code measures things like:

  • the three vertical thirds of the face, and how even they are
  • eye spacing compared with face width
  • canthal tilt, the angle from the inner to the outer corner of the eye
  • jaw width compared with cheekbone width
  • lip and nose proportions

Each landmark has a fixed index in MediaPipe's mesh, so the same measurement works on every face.

Step 3: score each ratio, then combine

Every measurement has an ideal value, a tolerance and a weight. A measurement right on the ideal gets full marks. As it moves away, the score falls off smoothly along a bell curve (a Gaussian), and the tolerance controls how fast. Some measurements, like a positive canthal tilt, are "more is fine", so they only lose points in one direction. The weighted results are combined into the final 1–10 score. Male and female profiles use different ideals where the usual references differ.

What actually leaves your device

Only three things, and only if you press Submit: the avatar you pick, your nickname, and your final score. Those go to the leaderboard database. Avatars are checked in the browser by an image-safety model before they can be submitted.

It's for fun

A score made of ratios is a game, not a judgment of anyone. That's why the site asks for an 18+/for-fun confirmation first. Play Mog Olympics.