Configuration
data class Configuration @JvmOverloads constructor(val cameraFacing: CameraFacing = CameraFacing.FRONT, val isTorchEnabled: Boolean = false, val faceSizeRatioInterval: IntervalDouble = IntervalDouble(0.1, 0.3), val corners: List<Corner>, val minValidSamplesCount: Int = 4, val transitionType: EyeGazeLivenessFragment.Configuration.TransitionType = TransitionType.MOVE, val transitionDurationMillis: Int = 800, val query: FaceDetectionQuery = FaceDetectionQuery(), val sessionToken: String? = null)
Configuration for the Eye Gaze Liveness UI component.
Constructors
Link copied to clipboard
fun Configuration(cameraFacing: CameraFacing = CameraFacing.FRONT, isTorchEnabled: Boolean = false, faceSizeRatioInterval: IntervalDouble = IntervalDouble(0.1, 0.3), corners: List<Corner>, minValidSamplesCount: Int = 4, transitionType: EyeGazeLivenessFragment.Configuration.TransitionType = TransitionType.MOVE, transitionDurationMillis: Int = 800, query: FaceDetectionQuery = FaceDetectionQuery(), sessionToken: String? = null)
Types
Properties
Link copied to clipboard
Link copied to clipboard
Query for extra evaluations. It allows for additional processing beyond basic face detection. The default, FaceDetectionQuery, signifies no extra evaluations and is optimized for speed.
Link copied to clipboard
Transition type between segments. Default value is TransitionType.MOVE.