Class ResultAccumulationConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class ResultAccumulationConfiguration implements Parcelable
Configuration for how to accumulate results.
-
-
Field Summary
Fields Modifier and Type Field Description private ConfirmationMethod
confirmationMethod
private Integer
minConfirmations
private Double
minConfidenceForStableField
private Integer
autoClearThreshold
-
Constructor Summary
Constructors Constructor Description ResultAccumulationConfiguration(Map<String, Object> source)
ResultAccumulationConfiguration(JSONObject json)
ResultAccumulationConfiguration(ConfirmationMethod confirmationMethod, Integer minConfirmations, Double minConfidenceForStableField, Integer autoClearThreshold)
-
Method Summary
Modifier and Type Method Description final ConfirmationMethod
getConfirmationMethod()
Method used to confirm a result. final Unit
setConfirmationMethod(ConfirmationMethod confirmationMethod)
Method used to confirm a result. final Integer
getMinConfirmations()
Number of confirmations required to consider a result confirmed (see ConfirmationMethod). final Unit
setMinConfirmations(Integer minConfirmations)
Number of confirmations required to consider a result confirmed (see ConfirmationMethod). final Double
getMinConfidenceForStableField()
Minimum confidence required to consider a field confirmed. final Unit
setMinConfidenceForStableField(Double minConfidenceForStableField)
Minimum confidence required to consider a field confirmed. final Integer
getAutoClearThreshold()
Will auto-clear the cache if this number of frames have been a different document type or empty. final Unit
setAutoClearThreshold(Integer autoClearThreshold)
Will auto-clear the cache if this number of frames have been a different document type or empty. final JSONObject
toJson(ToJsonConfiguration config)
final ResultAccumulationConfiguration
clone()
final static ResultAccumulationConfiguration
default()
-
-
-
Constructor Detail
-
ResultAccumulationConfiguration
ResultAccumulationConfiguration(JSONObject json)
-
ResultAccumulationConfiguration
ResultAccumulationConfiguration(ConfirmationMethod confirmationMethod, Integer minConfirmations, Double minConfidenceForStableField, Integer autoClearThreshold)
-
-
Method Detail
-
getConfirmationMethod
final ConfirmationMethod getConfirmationMethod()
Method used to confirm a result.
Default is EXACT
-
setConfirmationMethod
final Unit setConfirmationMethod(ConfirmationMethod confirmationMethod)
Method used to confirm a result.
Default is EXACT
-
getMinConfirmations
final Integer getMinConfirmations()
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.
Default is 3
-
setMinConfirmations
final Unit setMinConfirmations(Integer minConfirmations)
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.
Default is 3
-
getMinConfidenceForStableField
final Double getMinConfidenceForStableField()
Minimum confidence required to consider a field confirmed.
Default is 0.8
-
setMinConfidenceForStableField
final Unit setMinConfidenceForStableField(Double minConfidenceForStableField)
Minimum confidence required to consider a field confirmed.
Default is 0.8
-
getAutoClearThreshold
final Integer getAutoClearThreshold()
Will auto-clear the cache if this number of frames have been a different document type or empty.
Default is 4
-
setAutoClearThreshold
final Unit setAutoClearThreshold(Integer autoClearThreshold)
Will auto-clear the cache if this number of frames have been a different document type or empty.
Default is 4
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final ResultAccumulationConfiguration clone()
-
default
final static ResultAccumulationConfiguration default()
-
-