public enum XDimensionMode extends java.lang.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 modeBarCodeReader reader = new BarCodeReader("c:\\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 and Description |
---|
AUTO
Value of XDimension is detected by AI (SVM).
|
LARGE
Detects barcodes with large XDimension with quality from BarcodeQuality captured with high-resolution cameras.
|
NORMAL
Detects barcodes with classic XDimension in 2 pixels or more with quality from BarcodeQuality or high quality barcodes.
|
SMALL
Detects barcodes with small XDimension in 1 pixel or more with quality from BarcodeQuality
|
USE_MINIMAL_X_DIMENSION
Detects barcodes from size set in MinimalXDimension with quality from BarcodeQuality
|
Modifier and Type | Method and Description |
---|---|
static XDimensionMode |
fromValue(int value) |
int |
getValue() |
static XDimensionMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static XDimensionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XDimensionMode AUTO
Value of XDimension is detected by AI (SVM). At this time the same as Normal
public static final XDimensionMode SMALL
Detects barcodes with small XDimension in 1 pixel or more with quality from BarcodeQuality
public static final XDimensionMode NORMAL
Detects barcodes with classic XDimension in 2 pixels or more with quality from BarcodeQuality or high quality barcodes.
public static final XDimensionMode LARGE
Detects barcodes with large XDimension with quality from BarcodeQuality captured with high-resolution cameras.
public static final XDimensionMode USE_MINIMAL_X_DIMENSION
Detects barcodes from size set in MinimalXDimension with quality from BarcodeQuality
public static XDimensionMode[] values()
for (XDimensionMode c : XDimensionMode.values()) System.out.println(c);
public static XDimensionMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static XDimensionMode fromValue(int value)