Enum Class XDimensionMode

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

public enum XDimensionMode extends Enum<XDimensionMode>

Recognition mode which sets size (from 1 to infinity) of barcode minimal element: matrix cell or bar.


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

  • Enum Constant Details

    • AUTO

      public static final XDimensionMode AUTO

      Value of XDimension is detected by AI (SVM). At this time the same as Normal

    • SMALL

      public static final XDimensionMode SMALL

      Detects barcodes with small XDimension in 1 pixel or more with quality from BarcodeQuality

    • NORMAL

      public static final XDimensionMode NORMAL

      Detects barcodes with classic XDimension in 2 pixels or more with quality from BarcodeQuality or high quality barcodes.

    • LARGE

      public static final XDimensionMode LARGE

      Detects barcodes with large XDimension with quality from BarcodeQuality captured with high-resolution cameras.

    • USE_MINIMAL_X_DIMENSION

      public static final XDimensionMode USE_MINIMAL_X_DIMENSION

      Detects barcodes from size set in MinimalXDimension with quality from BarcodeQuality

  • Method Details

    • values

      public static XDimensionMode[] 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 XDimensionMode 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 XDimensionMode fromValue(int value)