SmileLivenessFragment

abstract class SmileLivenessFragment : TiltSensorCameraPreviewFragment

UI Smile Liveness component.

A visual component which performs the liveness check based on the changes in the face expression.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
data class Configuration(val common: CommonConfiguration = CommonConfiguration(), val camera: CameraConfiguration = CameraConfiguration( facing = CameraFacing.FRONT, ), val faceLibraryComponent: FaceLibraryComponentConfiguration = FaceLibraryComponentConfiguration( faceSizeRatioInterval = FaceAutoCaptureController.Configuration.DEFAULT_FACE_SIZE_RATIO_INTERVAL, ), val isDetectionLayerVisible: Boolean = false, qualityAttributeThresholds: QualityAttributeThresholds = QualityAttributeThresholds())

Configuration for the UI Smile Liveness component.

Functions

Link copied to clipboard

If the face presence is lost after the neutral face expression image is captured. If the face presence between the neutral and the smile face expression images is required, call start method to restart the process. Otherwise the callback can be ignored. Called only once for the whole process.

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

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.