Configuration
data class Configuration(val context: Context, val validators: List<PalmAutoCaptureFrameParametersValidator>, 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 Palm Auto Capture Controller component.
Throws
If any of the validators has a missing dependency.
Constructors
Link copied to clipboard
fun Configuration(context: Context, validators: List<PalmAutoCaptureFrameParametersValidator>, 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
Common configuration for all components. Default value is CommonConfiguration.
Link copied to clipboard
Rectangle of a submitted image (via the PalmAutoCaptureController.process method) where a palm 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.