Local preprocessing
Images are decoded in-browser and downscaled to a maximum 1200px long edge. This keeps large phone selfies fast while preserving landmark-relevant structure.
technical methodology
The pipeline is intentionally inspectable: local image preparation, 478-point landmark mapping, roll-angle normalization, quality checks, six anatomical regions, weighted pillars, and calibrated output bands.
Images are decoded in-browser and downscaled to a maximum 1200px long edge. This keeps large phone selfies fast while preserving landmark-relevant structure.
MediaPipe FaceLandmarker loads WASM from the official jsDelivr package CDN and the official Google model bucket. GPU delegate is attempted first, CPU is the fallback.
Outer eye corners 33 and 263 estimate head roll. Coordinates are rotated by the inverse angle in aspect-corrected pixel space before ratios are measured.
Tilt, horizontal yaw proxy, framing coverage, and usable geometry produce a 0–100 photo-quality score plus actionable retake guidance.
atan2(y outer − y inner, x outer − x inner) in degrees, averaged across both eyes after roll normalization.
Distance between inner eye corners divided by mean eye width.
Vertical eyelid opening divided by horizontal eye width, averaged left/right.
Jaw width at gonion landmarks divided by cheekbone width.
Chin-to-lip distance divided by nose-base-to-lip distance.
Angle formed from cheekbone to jaw corner to chin, averaged across both sides.
Mean mirror error of paired landmarks around the facial midline, converted to a 0–100 percentage.
Vertical alignment difference between paired inner and outer eye corners.
Mirror consistency across jaw corners, mouth corners, and lower-face anchors.
Hairline-to-brow, brow-to-nose-base, and nose-base-to-chin distances compared as a percentage split.
Face length divided by bizygomatic width and compared with profile reference bands.
Mouth width divided by nose width at the alar landmarks.
Bizygomatic facial width divided by upper-face height.
Cheekbone width compared with combined jaw and temple width context.
Rule-based classification from length-width, jaw-cheek width, forehead width, taper, and lower-third proportions.
Pupil-to-lip-center distance divided by interpupillary distance.
Nose alar width divided by interocular width.
Mean upper and lower lip thickness divided by mouth width.
Each metric receives a 0–100 score from its distance to a profile-specific reference band. Metrics are grouped into Harmony, Dimorphism, Angularity, and Balance pillars. The composite face rating is calibrated into a realistic 45–95 central range instead of pretending either perfect geometry or exact human ranking can be inferred from one frontal image.
The 1.0–8.0 looksmaxing scale is a bounded transformation of the composite. Potential uplift adds a conservative softmaxxing estimate based on focus-area severity, capped at 7.8.