Package io.scanbot.sdk.barcode
Enum TwoDDecodingMode
- java.lang.Object
-
- java.lang.Enum<TwoDDecodingMode>
-
- io.scanbot.sdk.barcode.TwoDDecodingMode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TwoDDecodingMode>
public enum TwoDDecodingMode extends java.lang.Enum<TwoDDecodingMode>
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.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HIGH_EFFORTHigh-effort decoding mode.LOW_EFFORTFast decoding mode.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TwoDDecodingModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TwoDDecodingMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOW_EFFORT
public static final TwoDDecodingMode 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
public static final TwoDDecodingMode 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 Detail
-
values
public static TwoDDecodingMode[] 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 (TwoDDecodingMode c : TwoDDecodingMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TwoDDecodingMode 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
-
-