public enum BarcodeQualityMode extends java.lang.Enum<BarcodeQualityMode>
Mode which enables methods to recognize barcode elements with the selected quality. Barcode element with lower quality requires more hard methods which slows the recognition.
This sample shows how to use BarcodeQuality modeBarCodeReader reader = new BarCodeReader("c:\\test.png", DecodeType.CODE_39_EXTENDED, DecodeType.CODE_128); reader.getQualitySettings().setBarcodeQuality(BarcodeQualityMode.LOW); for(BarCodeResult result : reader.readBarCodes()) System.out.println(result.getCodeText());
Enum Constant and Description |
---|
HIGH
Enables recognition methods for High quality barcodes.
|
LOW
Enables recognition methods for Low quality barcodes.
|
NORMAL
Enables recognition methods for Common(Normal) quality barcodes.
|
Modifier and Type | Method and Description |
---|---|
static BarcodeQualityMode |
fromValue(int value) |
int |
getValue() |
static BarcodeQualityMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BarcodeQualityMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BarcodeQualityMode HIGH
Enables recognition methods for High quality barcodes.
public static final BarcodeQualityMode NORMAL
Enables recognition methods for Common(Normal) quality barcodes.
public static final BarcodeQualityMode LOW
Enables recognition methods for Low quality barcodes.
public static BarcodeQualityMode[] values()
for (BarcodeQualityMode c : BarcodeQualityMode.values()) System.out.println(c);
public static BarcodeQualityMode 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 BarcodeQualityMode fromValue(int value)