Class ResultAccumulationConfiguration


  • public class ResultAccumulationConfiguration
    extends java.lang.Object
    Configuration for how to accumulate results.
    • 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 EXACT
        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
        minConfidenceForStableField - Minimum confidence required to consider a field confirmed. Default is 0.8
        autoClearThreshold - 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.