Expand description
MediaPipe Face Mesh index → PadLandmarkId mapping for pure-landmark PAD.
Full Face Mesh exposes 468 landmarks. PAD keeps only the eight
geometry-critical slots. Indices below match MediaPipe Face Mesh topology
(same numbers as PadLandmarkId::mediapipe_index).
| Role | MediaPipe index | PadLandmarkId |
|---|---|---|
| Nose tip | 1 | NoseTip |
| Chin | 152 | Chin |
| Left eye outer | 33 | LeftEyeOuter |
| Right eye outer | 263 | RightEyeOuter |
| Left cheek / face edge | 234 | LeftCheek |
| Right cheek / face edge | 454 | RightCheek |
| Upper lip | 13 | UpperLip |
| Lower lip | 14 | LowerLip |
PAR flat-mask lock uses 1 / 234 / 454 ((N, L, R)) on raw image (x) only. Never use model (Z).
Constants§
- MEDIAPIPE_
FACE_ MESH_ COUNT - MediaPipe Face Mesh landmark count (standard tesselation).
- PAD_
LANDMARK_ IDS - All PAD slots as a fixed table (stack-friendly iteration).
- PAD_
MEDIAPIPE_ INDICES - Canonical MediaPipe indices for the PAD packing order
(
PadLandmarkIddiscriminant order 0..7).
Functions§
- mediapipe_
index_ for_ pad - MediaPipe index for a PAD slot (delegates to
PadLandmarkId::mediapipe_index). - pad_
id_ for_ mediapipe_ index - Inverse map: MediaPipe index → PAD slot, if that index is one of the eight.