EyeGazeLivenessFragment

abstract class EyeGazeLivenessFragment : TiltSensorCameraPreviewFragment

Deprecated

Use MultiRangeLivenessFragment instead.

UI Eye Gaze Liveness component.

A visual component for capturing images suitable for Eye Gaze Liveness evaluation.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
data class Configuration(val corners: List<Corner>, val common: CommonConfiguration = CommonConfiguration(), val camera: CameraConfiguration = CameraConfiguration( facing = CameraFacing.FRONT, ), val faceLibraryComponent: FaceLibraryComponentConfiguration = FaceLibraryComponentConfiguration( faceSizeRatioInterval = FaceAutoCaptureController.Configuration.DEFAULT_FACE_SIZE_RATIO_INTERVAL, ), val minValidSamplesCount: Int = 4, val transitionType: EyeGazeLivenessFragment.Configuration.TransitionType = TransitionType.MOVE, val transitionDurationMillis: Int = 800)

Configuration for the UI Eye Gaze Liveness component.

Functions

Link copied to clipboard
abstract fun onAllCornersUsed()

Called when all specified corners has been used, but accepted sample count has not been reached. Once this callback is called, the whole process is considered to be over.

Link copied to clipboard

Called when the process is unable to continue. Either the face is not detected anymore or the eyes are not visible clearly. Once this callback is called, the whole process is considered to be over.

Link copied to clipboard
abstract fun onFinished(result: EyeGazeLivenessResult)

Called only once for the whole process. Once this callback is called, the whole process is considered to be over.

Link copied to clipboard

Provides the Configuration for the component.

Link copied to clipboard
override fun provideTiltSensorCameraImageProcessor(): TiltSensorCameraImageProcessor
Link copied to clipboard
fun start()

Start the process.

Link copied to clipboard
fun stop()

Stop the process.