ResultAccumulationConfiguration

data class ResultAccumulationConfiguration(var confirmationMethod: ConfirmationMethod = ConfirmationMethod.EXACT, var minConfirmations: Int = 3, var minConfidenceForStableField: Double = 0.8, var autoClearThreshold: Int = 4)

Configuration for how to accumulate results.

Constructors

Link copied to clipboard
constructor(confirmationMethod: ConfirmationMethod = ConfirmationMethod.EXACT, minConfirmations: Int = 3, minConfidenceForStableField: Double = 0.8, autoClearThreshold: Int = 4)
constructor(source: Map<String, Any?>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Will auto-clear the cache if this number of frames have been a different document type or empty.

Link copied to clipboard

Method used to confirm a result.

Link copied to clipboard

Minimum confidence required to consider a field confirmed.

Link copied to clipboard

Number of confirmations required to consider a result confirmed (see ConfirmationMethod). Requiring more confirmations will increase the reliability of the result but also the time to gather enough confirmations.

Functions

Link copied to clipboard
fun toJson(config: ToJsonConfiguration = ToJsonConfiguration.default()): JsonObject
Link copied to clipboard
fun toJsonString(config: ToJsonConfiguration = ToJsonConfiguration.default()): String