Configuration
data class Configuration(val common: CommonConfiguration = CommonConfiguration(), val camera: CameraConfiguration = CameraConfiguration(
facing = CameraFacing.FRONT,
), val autoCapture: AutoCaptureConfiguration = AutoCaptureConfiguration(
minValidSamplesInRowToStartCandidateSelection = FaceAutoCaptureController.Configuration.DEFAULT_MIN_VALID_SAMPLES_IN_ROW_TO_START_CANDIDATE_SELECTION,
candidateSelectionDurationMillis = FaceAutoCaptureController.Configuration.DEFAULT_CANDIDATE_SELECTION_DURATION_MILLIS,
), val faceLibraryComponent: FaceLibraryComponentConfiguration = FaceLibraryComponentConfiguration(
faceSizeRatioInterval = FaceAutoCaptureController.Configuration.DEFAULT_FACE_SIZE_RATIO_INTERVAL,
), val qualityAttributeThresholds: QualityAttributeThresholds = QualityAttributeThresholds.Presets.passiveLiveness, val captureMode: CaptureMode = CaptureMode.AUTO_CAPTURE)
Configuration for the UI Face Auto Capture component.
Constructors
Link copied to clipboard
constructor(common: CommonConfiguration = CommonConfiguration(), camera: CameraConfiguration = CameraConfiguration(
facing = CameraFacing.FRONT,
), autoCapture: AutoCaptureConfiguration = AutoCaptureConfiguration(
minValidSamplesInRowToStartCandidateSelection = FaceAutoCaptureController.Configuration.DEFAULT_MIN_VALID_SAMPLES_IN_ROW_TO_START_CANDIDATE_SELECTION,
candidateSelectionDurationMillis = FaceAutoCaptureController.Configuration.DEFAULT_CANDIDATE_SELECTION_DURATION_MILLIS,
), faceLibraryComponent: FaceLibraryComponentConfiguration = FaceLibraryComponentConfiguration(
faceSizeRatioInterval = FaceAutoCaptureController.Configuration.DEFAULT_FACE_SIZE_RATIO_INTERVAL,
), qualityAttributeThresholds: QualityAttributeThresholds = QualityAttributeThresholds.Presets.passiveLiveness, captureMode: CaptureMode = CaptureMode.AUTO_CAPTURE)
Properties
Link copied to clipboard
Configuration for auto capture components. Default minValidSamplesInRowToStartCandidateSelection is 2. Default candidateSelectionDurationMillis is 2_000.
Link copied to clipboard
Configuration for components utilizing a camera. Default value is CameraConfiguration with properties: Default facing is CameraFacing.FRONT.
Link copied to clipboard
Capture mode. Default value is CaptureMode.AUTO_CAPTURE.
Link copied to clipboard
Common configuration for all components. Default value is CommonConfiguration.
Link copied to clipboard
Configuration for face library components. Default value is FaceLibraryComponentConfiguration with properties: Default faceSizeRatioInterval is [0.1, 0.3].
Link copied to clipboard
Quality attribute thresholds. Default value is QualityAttributeThresholds.Presets.passiveLiveness.