points_to_68
- lib.align.aligned_utils.points_to_68(landmarks: npt.NDArray[np.float32], landmark_type: LandmarkType | None = None) npt.NDArray[np.float32]
Map the given non-68 point landmarks to 68 point landmarks
- Parameters:
landmarks (npt.NDArray[np.float32]) – The non-68 point landmarks, either (N, P, 2) or (P, 2)
landmark_type (LandmarkType | None) – The type of landmarks that have been provided or
Noneif to infer from the input landmarks. Default:None
- Return type:
The (N, 68, 2) or (68, 2) mapped landmarks