Enum Class BarcodeDefectProfile

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

public enum BarcodeDefectProfile extends Enum<BarcodeDefectProfile>
Specifies the types of defects expected when scanning barcodes. Selecting a profile that matches the expected barcode population can improve decoding performance.
  • Enum Constant Details

    • GENERIC

      public static final BarcodeDefectProfile GENERIC
      Handles general barcode defects, including damage and degradation caused by production, handling, storage, or normal wear.
    • GENERIC_AND_THERMAL

      public static final BarcodeDefectProfile GENERIC_AND_THERMAL
      Handles general barcode defects as well as common defect patterns associated with thermal printing. This is the default profile and is recommended for most scanning scenarios.
    • DEGRADED_THERMAL

      public static final BarcodeDefectProfile DEGRADED_THERMAL
      Handles general barcode defects as well as defect patterns associated with severely degraded or malfunctioning thermal printers. Use this profile when scanning barcodes produced by thermal printers with defective printheads or similar hardware issues. Using it with other barcode populations may increase the risk of false-positive reads.
  • Method Details

    • values

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