Configuration
data class Configuration @JvmOverloads constructor(val validators: List<FaceAutoCaptureDetectionValidator>, val minValidFramesInRowToStartCandidateSelection: Int = DEFAULT_MIN_VALID_FRAMES_IN_ROW_TO_START_CANDIDATE_SELECTION, val candidateSelectionDurationMillis: Int = DEFAULT_CANDIDATE_SELECTION_DURATION_MILLIS, val detectionNormalizedRectangle: RectangleDouble? = null, val sessionToken: String? = null)
Configuration for the Face Auto Capture Controller component.
Throws
If any of the validators has a missing dependency.
Constructors
Link copied to clipboard
fun Configuration(validators: List<FaceAutoCaptureDetectionValidator>, minValidFramesInRowToStartCandidateSelection: Int = DEFAULT_MIN_VALID_FRAMES_IN_ROW_TO_START_CANDIDATE_SELECTION, candidateSelectionDurationMillis: Int = DEFAULT_CANDIDATE_SELECTION_DURATION_MILLIS, detectionNormalizedRectangle: RectangleDouble? = null, sessionToken: String? = null)
Properties
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 detectionNormalizedRectangle as follows: RectangleDouble(0.0, 0.25, 1.0, 0.75)`. Source image is used if detectionNormalizedRectangle is not defined.