Skip to main content

SessionCustomParameter

Custom parameters for configuring a face recognition session. This type holds various flags to enable or disable specific features in the face recognition context, such as face recognition, liveness detection, mask detection, quality assessment, and attribute prediction.

type SessionCustomParameter = {
enableRecognition?: boolean;
enableLiveness?: boolean;
enableIrLiveness?: boolean;
enableMaskDetect?: boolean;
enableFaceQuality?: boolean;
enableFaceAttribute?: boolean;
enableInteractionLiveness?: boolean;
enableDetectModeLandmark?: boolean;
};

Properties

PropertyTypeDescription
enableRecognitionboolean(Optional) Enable face recognition feature. Default to false
enableLivenessboolean(Optional) Enable RGB liveness detection feature. Default to false
enableIrLivenessboolean(Optional) Enable IR (Infrared) liveness detection feature. Default to false
enableMaskDetectboolean(Optional) Enable mask detection feature. Default to false
enableFaceQualityboolean(Optional) Enable face quality assessment feature. Default to false
enableFaceAttributeboolean(Optional) Enable face attribute prediction feature. Default to false
enableInteractionLivenessboolean(Optional) Enable interaction for liveness detection feature. Default to false
enableDetectModeLandmarkboolean(Optional) Enable landmark detection in detection mode. Default to false