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 ConfirmationMethodconfirmationMethodprivate IntegerminConfirmationsprivate DoubleminConfidenceForStableFieldprivate IntegerautoClearThreshold
-
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 ConfirmationMethodgetConfirmationMethod()Method used to confirm a result. final UnitsetConfirmationMethod(ConfirmationMethod confirmationMethod)Method used to confirm a result. final IntegergetMinConfirmations()Number of confirmations required to consider a result confirmed (see ConfirmationMethod). final UnitsetMinConfirmations(Integer minConfirmations)Number of confirmations required to consider a result confirmed (see ConfirmationMethod). final DoublegetMinConfidenceForStableField()Minimum confidence required to consider a field confirmed. final UnitsetMinConfidenceForStableField(Double minConfidenceForStableField)Minimum confidence required to consider a field confirmed. final IntegergetAutoClearThreshold()Will auto-clear the cache if this number of frames have been a different document type or empty. final UnitsetAutoClearThreshold(Integer autoClearThreshold)Will auto-clear the cache if this number of frames have been a different document type or empty. final JSONObjecttoJson(ToJsonConfiguration config)final ResultAccumulationConfigurationclone()final static ResultAccumulationConfigurationdefault()-
-
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()
-
-
-
-