Skip to main content

Module mediapipe_index

Module mediapipe_index 

Source
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).

RoleMediaPipe indexPadLandmarkId
Nose tip1NoseTip
Chin152Chin
Left eye outer33LeftEyeOuter
Right eye outer263RightEyeOuter
Left cheek / face edge234LeftCheek
Right cheek / face edge454RightCheek
Upper lip13UpperLip
Lower lip14LowerLip

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 (PadLandmarkId discriminant 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.