Package io.scanbot.sdk.barcode
Enum OneDConfirmationMode
- java.lang.Object
-
- java.lang.Enum<OneDConfirmationMode>
-
- io.scanbot.sdk.barcode.OneDConfirmationMode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<OneDConfirmationMode>
public enum OneDConfirmationMode extends java.lang.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.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OneDConfirmationModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static OneDConfirmationMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static OneDConfirmationMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OneDConfirmationMode c : OneDConfirmationMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OneDConfirmationMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-