XDimensionMode
Inheritance: java.lang.Object, java.lang.Enum
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("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());
Fields
Field | 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 |
Methods
AUTO
public static final XDimensionMode AUTO
Value of XDimension is detected by AI (SVM). At this time the same as Normal
LARGE
public static final XDimensionMode LARGE
Detects barcodes with large XDimension with quality from BarcodeQuality captured with high-resolution cameras.
NORMAL
public static final XDimensionMode NORMAL
Detects barcodes with classic XDimension in 2 pixels or more with quality from BarcodeQuality or high quality barcodes.
SMALL
public static final XDimensionMode SMALL
Detects barcodes with small XDimension in 1 pixel or more with quality from BarcodeQuality
USE_MINIMAL_X_DIMENSION
public static final XDimensionMode USE_MINIMAL_X_DIMENSION
Detects barcodes from size set in MinimalXDimension with quality from BarcodeQuality
valueOf(Class arg0, String arg1)
public static T <T>valueOf(Class<T> arg0, String arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Class | |
arg1 | java.lang.String |
Returns: T
compareTo(E arg0)
public final int compareTo(E arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | E |
Returns: int
equals(Object arg0)
public final boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
fromValue(int value)
public static XDimensionMode fromValue(int value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
Returns: XDimensionMode
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getDeclaringClass()
public final Class<E> getDeclaringClass()
Returns:
java.lang.Class
getValue()
public int getValue()
Returns: int
hashCode()
public final int hashCode()
Returns: int
name()
public final String name()
Returns: java.lang.String
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
ordinal()
public final int ordinal()
Returns: int
toString()
public String toString()
Returns: java.lang.String
valueOf(String name)
public static XDimensionMode valueOf(String name)
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.lang.String |
Returns: XDimensionMode
values()
public static XDimensionMode[] values()
Returns: com.aspose.barcode.barcoderecognition.XDimensionMode[]
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |