FaceLandmarkerOptions interface {#facelandmarkeroptions_interface}

Options to configure the MediaPipe FaceLandmarker Task

Signature:

export declare interface FaceLandmarkerOptions extends VisionTaskOptions 

Properties

Property Modifiers Type Description
numFaces number | undefined The maximum number of faces can be detected by the FaceLandmarker. Defaults to 1.
minFaceDetectionConfidence number | undefined The minimum confidence score for the face detection to be considered successful. Defaults to 0.5.
minFacePresenceConfidence number | undefined The minimum confidence score of face presence score in the face landmark detection. Defaults to 0.5.
minTrackingConfidence number | undefined The minimum confidence score for the face tracking to be considered successful. Defaults to 0.5.
outputFaceBlendshapes boolean | undefined Whether FaceLandmarker outputs face blendshapes classification. Face blendshapes are used for rendering the 3D face model.
outputFacialTransformationMatrixes boolean | undefined Whether FaceLandmarker outputs facial transformation_matrix. Facial transformation matrix is used to transform the face landmarks in canonical face to the detected face, so that users can apply face effects on the detected landmarks.

FaceLandmarkerOptions.numFaces {#facelandmarkeroptionsnumfaces}

The maximum number of faces can be detected by the FaceLandmarker. Defaults to 1.

Signature:

numFaces?: number | undefined;

FaceLandmarkerOptions.minFaceDetectionConfidence {#facelandmarkeroptionsminfacedetectionconfidence}

The minimum confidence score for the face detection to be considered successful. Defaults to 0.5.

Signature:

minFaceDetectionConfidence?: number | undefined;

FaceLandmarkerOptions.minFacePresenceConfidence {#facelandmarkeroptionsminfacepresenceconfidence}

The minimum confidence score of face presence score in the face landmark detection. Defaults to 0.5.

Signature:

minFacePresenceConfidence?: number | undefined;

FaceLandmarkerOptions.minTrackingConfidence {#facelandmarkeroptionsmintrackingconfidence}

The minimum confidence score for the face tracking to be considered successful. Defaults to 0.5.

Signature:

minTrackingConfidence?: number | undefined;

FaceLandmarkerOptions.outputFaceBlendshapes {#facelandmarkeroptionsoutputfaceblendshapes}

Whether FaceLandmarker outputs face blendshapes classification. Face blendshapes are used for rendering the 3D face model.

Signature:

outputFaceBlendshapes?: boolean | undefined;

FaceLandmarkerOptions.outputFacialTransformationMatrixes {#facelandmarkeroptionsoutputfacialtransformationmatrixes}

Whether FaceLandmarker outputs facial transformation_matrix. Facial transformation matrix is used to transform the face landmarks in canonical face to the detected face, so that users can apply face effects on the detected landmarks.

Signature:

outputFacialTransformationMatrixes?: boolean | undefined;