Enum Class TwoDDecodingMode

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

public enum TwoDDecodingMode extends 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 Details

    • 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 Details

    • values

      public static TwoDDecodingMode[] 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 TwoDDecodingMode 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