Package io.scanbot.sdk.barcode
Enum Class OneDConfirmationMode
- All Implemented Interfaces:
Serializable,Comparable<OneDConfirmationMode>,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic OneDConfirmationModeReturns the enum constant of this class with the specified name.static OneDConfirmationMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No confirmation is required. This mode is the most prone to generating false positives. -
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
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
Recommended. Thorough confirmation is performed. Almost completely eliminates false positives, at the cost of an additional slight decrease in recall.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-