Package io.scanbot.sdk.barcode
Enum Class TwoDDecodingMode
- All Implemented Interfaces:
Serializable,Comparable<TwoDDecodingMode>,Constable
Allows to select the decoding effort to be spent on decoding 2D barcodes.
Higher decoding efforts can decode barcodes that are more damaged or have a lower print quality or are printed on
non-ideal surfaces (e.g. curved surfaces). However, higher decoding efforts also require more processing time.
-
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 TwoDDecodingModeReturns the enum constant of this class with the specified name.static TwoDDecodingMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOW_EFFORT
Fast decoding mode. This mode provides the fastest decoding speed, but is less likely to decode damaged or low-quality barcodes. Can be used for high-frame-rate scanning where most barcodes are expected to be in good condition or on low processing power devices. -
HIGH_EFFORT
High-effort decoding mode. This mode provides the highest decoding success rate for damaged or low-quality barcodes, at the cost of a slower decoding speed.
-
-
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
-