Enum Class XDimensionMode
- All Implemented Interfaces:
Serializable,Comparable<XDimensionMode>,Constable
Recognition mode which sets size (from 1 to infinity) of barcode minimal element: matrix cell or bar.
This sample shows how to use XDimension modeBarCodeReader 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());
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionValue of XDimension is detected by AI (SVM).Detects barcodes with large XDimension with quality from BarcodeQuality captured with high-resolution cameras.Detects barcodes with classic XDimension in 2 pixels or more with quality from BarcodeQuality or high quality barcodes.Detects barcodes with small XDimension in 1 pixel or more with quality from BarcodeQualityDetects barcodes from size set in MinimalXDimension with quality from BarcodeQuality -
Method Summary
Modifier and TypeMethodDescriptionstatic XDimensionModefromValue(int value) intgetValue()static XDimensionModeReturns the enum constant of this class with the specified name.static XDimensionMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTO
Value of XDimension is detected by AI (SVM). At this time the same as Normal
-
SMALL
Detects barcodes with small XDimension in 1 pixel or more with quality from BarcodeQuality
-
NORMAL
Detects barcodes with classic XDimension in 2 pixels or more with quality from BarcodeQuality or high quality barcodes.
-
LARGE
Detects barcodes with large XDimension with quality from BarcodeQuality captured with high-resolution cameras.
-
USE_MINIMAL_X_DIMENSION
Detects barcodes from size set in MinimalXDimension with quality from BarcodeQuality
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getValue
public int getValue() -
fromValue
-