Skip to main content

Types

RNMLKitFaceDetectionResult

Represents the result of the face detection process, containing an array of detected faces, a success flag, any potential errors, and the path to the image.

PropertyDescriptionTypeDefault
facesArray of detected faces.RNMLKitFace[]-
successIndicates if the face detection was successful.boolean-
errorAny potential errors during detection.string | nullnull
imagePathPath to the image being processed.string-

RNMLKitFace

Details of each detected face, including frame, landmarks, contours, and various other properties.

PropertyDescriptionTypeDefault
frameFrame detailing the position and size of the detected face.{x, y, width, height}-
landmarksArray of landmarks on the face.RNMLKitFaceLandmark[]-
contoursArray of contours on the face.RNMLKitFaceContour[]-
hasTrackingIDIndicates if the face has a tracking ID.boolean-
trackingIDThe tracking ID of the face, if available.number | nullnull
hasHeadEulerAngleXIndicates if the head Euler angle X is available.boolean-
headEulerAngleXThe head Euler angle X of the face, if available.number | nullnull
hasHeadEulerAngleYIndicates if the head Euler angle Y is available.boolean-
headEulerAngleYThe head Euler angle Y of the face, if available.number | nullnull
hasHeadEulerAngleZIndicates if the head Euler angle Z is available.boolean-
headEulerAngleZThe head Euler angle Z of the face, if available.number | nullnull
hasSmilingProbabilityIndicates if the smiling probability is available.boolean-
smilingProbabilityThe smiling probability of the face, if available.number | nullnull
hasLeftEyeOpenProbabilityIndicates if the left eye open probability is available.boolean-
leftEyeOpenProbabilityThe left eye open probability of the face, if available.number | nullnull
hasRightEyeOpenProbabilityIndicates if the right eye open probability is available.boolean-
rightEyeOpenProbabilityThe right eye open probability of the face, if available.number | nullnull

FaceLandmarkType

Types of landmarks that can be detected on a face.

Landmark
leftEye
leftMouth
leftEar
noseBase
leftCheek
rightEye
rightMouth
rightEar
rightCheek
bottomMouth
leftEarTip
rightEarTip

RNMLKitFaceLandmark

Specific landmarks detected on a face.

PropertyDescriptionTypeDefault
typeType of the landmark.FaceLandmarkType-
positionPosition of the landmark on the face.{x, y}-

RNMLKitFaceContour

Specific contours detected on a face.

PropertyDescriptionTypeDefault
typeType of the contour.FaceContourType-
pointsArray of points representing the contour on the face.Array<{x: number, y: number}> | nullnull

FaceContourType

Types of contours that can be detected on a face.

Contour
faceOval
leftEyebrowTop
leftEyebrowBottom
rightEyebrowTop
rightEyebrowBottom
leftEye
rightEye
upperLipTop
upperLipBottom
lowerLipTop
lowerLipBottom
noseBridge
noseBottom
leftCheekCenter
rightCheekCenter

RNMLKitFaceDetectorOptions

Options for the face detector.

PropertyDescriptionTypeDefault
performanceModeThe performance mode for the detector.string-
landmarkModeIndicates if landmark detection should be enabled.boolean | nullnull
contourModeIndicates if contour detection should be enabled.boolean | nullnull
classificationModeIndicates if classification mode should be enabled.boolean | nullnull
minFaceSizeMinimum size of the face for detection.number | nullnull
isTrackingEnabledIndicates if tracking should be enabled for detected faces.boolean | nullnull