Package io.scanbot.sdk.frameaccumulation
Class ResultAccumulationConfiguration
- java.lang.Object
-
- io.scanbot.sdk.frameaccumulation.ResultAccumulationConfiguration
-
public class ResultAccumulationConfiguration extends java.lang.ObjectConfiguration for how to accumulate results.
-
-
Constructor Summary
Constructors Constructor Description ResultAccumulationConfiguration()Constructs ResultAccumulationConfiguration with default parameters.ResultAccumulationConfiguration(ConfirmationMethod confirmationMethod, int minConfirmations, double minConfidenceForStableField, int autoClearThreshold)Constructs ResultAccumulationConfiguration with the given params.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAutoClearThreshold()Getter for autoClearThreshold field.ConfirmationMethodgetConfirmationMethod()Getter for confirmationMethod field.doublegetMinConfidenceForStableField()Getter for minConfidenceForStableField field.intgetMinConfirmations()Getter for minConfirmations field.voidsetAutoClearThreshold(int autoClearThreshold)Setter for autoClearThreshold field.voidsetConfirmationMethod(ConfirmationMethod confirmationMethod)Setter for confirmationMethod field.voidsetMinConfidenceForStableField(double minConfidenceForStableField)Setter for minConfidenceForStableField field.voidsetMinConfirmations(int minConfirmations)Setter for minConfirmations field.
-
-
-
Constructor Detail
-
ResultAccumulationConfiguration
public ResultAccumulationConfiguration(ConfirmationMethod confirmationMethod, int minConfirmations, double minConfidenceForStableField, int autoClearThreshold)
Constructs ResultAccumulationConfiguration with the given params.- Parameters:
confirmationMethod- Method used to confirm a result. Default is EXACTminConfirmations- 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 3minConfidenceForStableField- Minimum confidence required to consider a field confirmed. Default is 0.8autoClearThreshold- Will auto-clear the cache if this number of frames have been a different document type or empty. Default is 4
-
ResultAccumulationConfiguration
public ResultAccumulationConfiguration()
Constructs ResultAccumulationConfiguration with default parameters.
-
-
Method Detail
-
getConfirmationMethod
public ConfirmationMethod getConfirmationMethod()
Getter for confirmationMethod field. See constructor documentation for more information about the field.- Returns:
- confirmationMethod
-
setConfirmationMethod
public void setConfirmationMethod(ConfirmationMethod confirmationMethod)
Setter for confirmationMethod field. See constructor documentation for more information about the field.- Parameters:
confirmationMethod- Value to set.
-
getMinConfirmations
public int getMinConfirmations()
Getter for minConfirmations field. See constructor documentation for more information about the field.- Returns:
- minConfirmations
-
setMinConfirmations
public void setMinConfirmations(int minConfirmations)
Setter for minConfirmations field. See constructor documentation for more information about the field.- Parameters:
minConfirmations- Value to set.
-
getMinConfidenceForStableField
public double getMinConfidenceForStableField()
Getter for minConfidenceForStableField field. See constructor documentation for more information about the field.- Returns:
- minConfidenceForStableField
-
setMinConfidenceForStableField
public void setMinConfidenceForStableField(double minConfidenceForStableField)
Setter for minConfidenceForStableField field. See constructor documentation for more information about the field.- Parameters:
minConfidenceForStableField- Value to set.
-
getAutoClearThreshold
public int getAutoClearThreshold()
Getter for autoClearThreshold field. See constructor documentation for more information about the field.- Returns:
- autoClearThreshold
-
setAutoClearThreshold
public void setAutoClearThreshold(int autoClearThreshold)
Setter for autoClearThreshold field. See constructor documentation for more information about the field.- Parameters:
autoClearThreshold- Value to set.
-
-