DebugLandmarks

class scripts.extract.DebugLandmarks(size: int)

Bases: object

Draw debug landmarks on face output.

Parameters:

size (int) – The size of the extracted face image

Methods Summary

__call__(faces, matrices, media)

Draw debug annotations on extracted face images

Methods Documentation

__call__(faces: npt.NDArray[np.uint8], matrices: npt.NDArray[np.float32], media: FrameFaces) None

Draw debug annotations on extracted face images

Parameters:
  • faces (npt.NDArray[np.uint8]) – The aligned face images that are to be saved to disk

  • matrices (npt.NDArray[np.float32]) – The adjustment matrices for transforming from frame space to face space

  • media (FrameFaces) – The corresponding FrameFaces media object for the faces

Return type:

None

__call__(faces: npt.NDArray[np.uint8], matrices: npt.NDArray[np.float32], media: FrameFaces) None

Draw debug annotations on extracted face images

Parameters:
  • faces (npt.NDArray[np.uint8]) – The aligned face images that are to be saved to disk

  • matrices (npt.NDArray[np.float32]) – The adjustment matrices for transforming from frame space to face space

  • media (FrameFaces) – The corresponding FrameFaces media object for the faces

Return type:

None