Configuration

data class Configuration(val context: Context, val validators: List<FaceAutoCaptureFrameParametersValidator>, val common: CommonConfiguration = CommonConfiguration(), val autoCapture: AutoCaptureConfiguration = AutoCaptureConfiguration( minValidSamplesInRowToStartCandidateSelection = DEFAULT_MIN_VALID_SAMPLES_IN_ROW_TO_START_CANDIDATE_SELECTION, candidateSelectionDurationMillis = DEFAULT_CANDIDATE_SELECTION_DURATION_MILLIS, ), val detectionArea: RectangleDouble? = null)

Configuration for the Face Auto Capture Controller component.

Throws

If any of the validators has a missing dependency.

Constructors

Link copied to clipboard
constructor(context: Context, validators: List<FaceAutoCaptureFrameParametersValidator>, common: CommonConfiguration = CommonConfiguration(), autoCapture: AutoCaptureConfiguration = AutoCaptureConfiguration( minValidSamplesInRowToStartCandidateSelection = DEFAULT_MIN_VALID_SAMPLES_IN_ROW_TO_START_CANDIDATE_SELECTION, candidateSelectionDurationMillis = DEFAULT_CANDIDATE_SELECTION_DURATION_MILLIS, ), detectionArea: RectangleDouble? = null)

Properties

Link copied to clipboard

Configuration for auto capture components. Default minValidSamplesInRowToStartCandidateSelection is 2. Default candidateSelectionDurationMillis is 2_000.

Link copied to clipboard

Common configuration for all components. Default value is CommonConfiguration.

Link copied to clipboard

Android context.

Link copied to clipboard

Rectangle of a submitted image (via the FaceAutoCaptureController.process method) where a face should be detected. The rectangle defines an area inside the image. E.g. if you post images of size 1080x1920 and you want to ignore top and bottom areas, you can use the detectionArea as follows: RectangleDouble(0.0, 0.25, 1.0, 0.75)`. Source image is used if detectionArea is not defined.

Link copied to clipboard

List of validators. Validations are applied in the same order in which they are stored in the list.