Enum Class OneDConfirmationMode

java.lang.Object
java.lang.Enum<OneDConfirmationMode>
io.scanbot.sdk.barcode.OneDConfirmationMode
All Implemented Interfaces:
Serializable, Comparable<OneDConfirmationMode>, Constable

public enum OneDConfirmationMode extends Enum<OneDConfirmationMode>
Allows to select the balance between result accuracy (precision) and missed barcodes (recall) for linear barcodes. Some barcode types are naturally prone to false positives (e.g. MSI Plessey). For those barcode types false positives can be drastically reduced (precision can be increased) by requiring that multiple scan-lines in the input scan to the same result. However, this stronger condition can lead to missed barcodes (lower recall). Confirmation is avoided for barcode types, which are by design resistant to false positives, (e.g. Code128) to maximize recall.
  • Enum Constant Details

    • NONE

      public static final OneDConfirmationMode NONE
      No confirmation is required. This mode is the most prone to generating false positives.
    • MINIMAL

      public static final OneDConfirmationMode MINIMAL
      Minimal confirmation is performed. Compared to no confirmation, it provides a substantial decrease in false positives (increased precision), at the cost of a minimal decrease in recall.
    • MODERATE

      public static final OneDConfirmationMode MODERATE
      Moderate confirmation is performed. Compared to minimal confirmation, it provides an additional decrease in false positives, at the cost of a slight decrease in recall.
    • THOROUGH

      public static final OneDConfirmationMode THOROUGH
      Recommended. Thorough confirmation is performed. Almost completely eliminates false positives, at the cost of an additional slight decrease in recall.
  • Method Details

    • values

      public static OneDConfirmationMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static OneDConfirmationMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null