DocumentAutoCaptureController

Document Auto Capture Controller component.

Types

Link copied to clipboard
data class Configuration(val context: Context, val validators: List<DocumentAutoCaptureDetectionValidator>, 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 imageParametersNormalizedRectangle: RectangleDouble? = null, val sessionToken: String? = null)

Configuration for the Document Auto Capture Controller component.

Link copied to clipboard
data class ProcessingResult

Result of a processing operation. See process method.

Link copied to clipboard
data class Sample(val timestampMillis: Long, val bgraRawImage: BgraRawImage, totalCaptureResult: TotalCaptureResult? = null)

Sample (or snapshot) at a single point in time.

Functions

Link copied to clipboard

Process the sample and update internal state of the controller. This operation should be called on background thread.

abstract fun process(bgraRawImage: BgraRawImage, timestampMillis: Long): DocumentAutoCaptureController.ProcessingResult

Process the image and update internal state of the controller. This operation should be called on background thread.