Smile Liveness Fragment
Smile Liveness UI component.
A visual component which performs the liveness check based on the changes in the face expression.
Constructors
Types
Link copied to clipboard
data class Configuration @JvmOverloads constructor(val cameraFacing: CameraFacing = CameraFacing.FRONT, val cameraPreviewScaleType: CameraPreviewScaleType = CameraPreviewScaleType.FIT, val isTorchEnabled: Boolean = false, val faceSizeRatioInterval: IntervalDouble = IntervalDouble(0.1, 0.3), val isDetectionLayerVisible: Boolean = false, val query: FaceDetectionQuery = FaceDetectionQuery(), val sessionToken: String? = null, qualityAttributeThresholds: QualityAttributeThresholds = QualityAttributeThresholds(QualityAttributeThresholds.NeutralExpressionPhase(), QualityAttributeThresholds.SmileExpressionPhase()))
Configuration for the Smile Liveness UI component.
Functions
Link copied to clipboard
Called only once for the whole process. Once this callback is called, the whole process is considered to be over.
Link copied to clipboard
Called when a camera image is processed.
Link copied to clipboard
Subclasses should override this method to provide Configuration for the Smile Liveness UI component.