Enum Class ComplexBackgroundMode

java.lang.Object
java.lang.Enum<ComplexBackgroundMode>
com.aspose.barcode.barcoderecognition.ComplexBackgroundMode
All Implemented Interfaces:
Serializable, Comparable<ComplexBackgroundMode>, Constable

public enum ComplexBackgroundMode extends Enum<ComplexBackgroundMode>

Mode which enables or disables additional recognition of color barcodes on color images.


  This sample shows how to use ComplexBackground mode
  
  BarCodeReader reader = new BarCodeReader("test.png", DecodeType.CODE_39_EXTENDED, DecodeType.CODE_128);
  reader.getQualitySettings().setComplexBackground(ComplexBackgroundMode.ENABLED);
  for(BarCodeResult result : reader.readBarCodes())
     System.out.println(result.getCodeText());
        

  • Enum Constant Details

    • AUTO

      public static final ComplexBackgroundMode AUTO

      At this time the same as Disabled. Disables additional recognition of color barcodes on color images.

    • DISABLED

      public static final ComplexBackgroundMode DISABLED

      Disables additional recognition of color barcodes on color images.

    • ENABLED

      public static final ComplexBackgroundMode ENABLED

      Enables additional recognition of color barcodes on color images.

  • Method Details

    • values

      public static ComplexBackgroundMode[] 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 ComplexBackgroundMode 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
    • getValue

      public int getValue()
    • fromValue

      public static ComplexBackgroundMode fromValue(int value)