Options to configure the MediaPipe FaceLandmarker Task
Signature:
export declare interface FaceLandmarkerOptions extends VisionTaskOptions
Extends: VisionTaskOptions
Properties
Property | Type | Description |
---|---|---|
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. |
numFaces | number | undefined | The maximum number of faces can be detected by the FaceLandmarker. Defaults to 1. |
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.minFaceDetectionConfidence
The minimum confidence score for the face detection to be considered successful. Defaults to 0.5.
Signature:
minFaceDetectionConfidence?: number | undefined;
FaceLandmarkerOptions.minFacePresenceConfidence
The minimum confidence score of face presence score in the face landmark detection. Defaults to 0.5.
Signature:
minFacePresenceConfidence?: number | undefined;
FaceLandmarkerOptions.minTrackingConfidence
The minimum confidence score for the face tracking to be considered successful. Defaults to 0.5.
Signature:
minTrackingConfidence?: number | undefined;
FaceLandmarkerOptions.numFaces
The maximum number of faces can be detected by the FaceLandmarker. Defaults to 1.
Signature:
numFaces?: number | undefined;
FaceLandmarkerOptions.outputFaceBlendshapes
Whether FaceLandmarker outputs face blendshapes classification. Face blendshapes are used for rendering the 3D face model.
Signature:
outputFaceBlendshapes?: boolean | undefined;
FaceLandmarkerOptions.outputFacialTransformationMatrixes
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;