public class BarCodeReader
extends java.lang.Object
BarCodeReader encapsulates an image which may contain one or several barcodes, it then can perform Read operation to detect barcodes
Detect an code39 com.aspose.barcode with supplement
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes com.aspose.barcode reader.
|
void |
dispose()
Release resource
|
protected void |
finalize() |
int |
getBarCodeOrientation() |
java.lang.String |
getCheckSum() |
int |
getChecksumValidation()
Enable checksum validation during recognition for 1D barcodes.
|
byte[] |
getCodeBytes() |
java.lang.String |
getCodeText()
Gets the code text.
|
int |
getCustomerInformationInterpretingType()
Gets the Interpreting Type for the Customer Information of AustralianPost BarCode.Default is CustomerInformationInterpretingType.Other.
|
int |
getCustomizedScanStrength()
Gets the ScanStrength, value range is 1(weakest) to 100(strongest).
|
int |
getCustomizedThreshold()
Gets the the threshold value.This property works only the ThresholdHints.Customized Hints was set.
|
int |
getExpectedBarCodeCount()
Expected barcodes to be found.The reader will stop reading the image once it found barcodes more than this value.
|
int |
getImageBinarizationHints()
Gets the image binarization hints.
|
java.lang.String |
getMacroPdf417FileID()
Gets the file ID of the com.aspose.barcode, only available with MacroPdf417.
|
boolean |
getMacroPdf417LastSegment()
Gets the last segment flag,only available with MacroPdf417..
|
int |
getMacroPdf417SegmentID()
Gets the segment ID of the com.aspose.barcode,only available with MacroPdf417.
|
int |
getOrientationHints()
Gets the orientation hints.
|
long |
getReadType()
Gets the com.aspose.barcode type.
|
BarCodeRegion |
getRegion()
Gets the com.aspose.barcode region.
|
boolean |
getStripFNC()
Strip FNC1, FNC2, FNC3 characters from codetext.
|
int |
getTimeout() |
static boolean |
isLicensed()
Gets a value indicating whether recognition module is licensed.
|
boolean |
read()
Reads com.aspose.barcode from the image.
|
void |
setChecksumValidation(int value) |
void |
setCustomerInformationInterpretingType(int value)
Sets the Interpreting Type for the Customer Information of AustralianPost BarCode.Default is CustomerInformationInterpretingType.Other.
|
void |
setCustomizedScanStrength(int value)
Sets the ScanStrength, value range is 1(weakest) to 100(strongest).
|
void |
setCustomizedThreshold(int value)
Sets the the threshold value.This property works only the ThresholdHints.Customized Hints was set.
|
void |
setExpectedBarCodeCount(int value) |
void |
setImageBinarizationHints(int value)
Sets the image binarization hints.
|
void |
setOrientationHints(int value)
Sets the orientation hints.
|
void |
setStripFNC(boolean value) |
void |
setTimeout(int value) |
public void close()
Closes com.aspose.barcode reader.
public void dispose()
Release resource
protected void finalize()
finalize
in class java.lang.Object
public int getBarCodeOrientation()
public java.lang.String getCheckSum()
public int getChecksumValidation()
Enable checksum validation during recognition for 1D barcodes.
Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible.
Checksum never used: Codabar
Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN
Checksum always used: Rest symbologies
Value: The checksum validation flag.public byte[] getCodeBytes()
public java.lang.String getCodeText()
Gets the code text.
public int getCustomerInformationInterpretingType()
Gets the Interpreting Type for the Customer Information of AustralianPost BarCode.Default is CustomerInformationInterpretingType.Other.
public int getCustomizedScanStrength()
public int getCustomizedThreshold()
Gets the the threshold value.This property works only the ThresholdHints.Customized Hints was set.
public int getExpectedBarCodeCount()
Expected barcodes to be found.The reader will stop reading the image once it found barcodes more than this value. Default value is int.MaxValue.
public int getImageBinarizationHints()
Gets the image binarization hints.
Value: The image binarization hints. Default value is None.public java.lang.String getMacroPdf417FileID()
Gets the file ID of the com.aspose.barcode, only available with MacroPdf417.
public boolean getMacroPdf417LastSegment()
Gets the last segment flag,only available with MacroPdf417..
public int getMacroPdf417SegmentID()
Gets the segment ID of the com.aspose.barcode,only available with MacroPdf417.
public int getOrientationHints()
Gets the orientation hints.
Value: The orientation hints. Default value is NoRotate.public long getReadType()
Gets the com.aspose.barcode type.
public BarCodeRegion getRegion()
Gets the com.aspose.barcode region.
public boolean getStripFNC()
Strip FNC1, FNC2, FNC3 characters from codetext. Default value is false.
public int getTimeout()
public static boolean isLicensed()
Gets a value indicating whether recognition module is licensed.
Value:true
if recognition module is licensed; otherwise, false
.public boolean read()
Reads com.aspose.barcode from the image.
Detect AllSupportedTypes
public void setChecksumValidation(int value)
public void setCustomerInformationInterpretingType(int value)
Sets the Interpreting Type for the Customer Information of AustralianPost BarCode.Default is CustomerInformationInterpretingType.Other.
public void setCustomizedScanStrength(int value)
public void setCustomizedThreshold(int value)
Sets the the threshold value.This property works only the ThresholdHints.Customized Hints was set.
public void setExpectedBarCodeCount(int value)
public void setImageBinarizationHints(int value)
Sets the image binarization hints.
Value: The image binarization hints. Default value is None.public void setOrientationHints(int value)
Sets the orientation hints.
Value: The orientation hints. Default value is NoRotate.public void setStripFNC(boolean value)
public void setTimeout(int value)