|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.barcoderecognition.BarCodeReader
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
Constructor Summary BarCodeReader(BinarizedBitmap image, long type)
Method Summary void
close()
Methods inherited from class java.lang.Object clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail BarCodeReader
public BarCodeReader(BinarizedBitmap image, long type)
BarCodeReader constructor from an image
BarCodeReader
public BarCodeReader(BinarizedBitmap image, java.awt.Rectangle rectangle, long type)
BarCodeReader constructor from an image
BarCodeReader
public BarCodeReader(java.awt.image.BufferedImage image)
Initializes a new instance of the
BarCodeReader
class.
BarCodeReader
public BarCodeReader(java.awt.image.BufferedImage image, long type)
Initializes a new instance of the
BarCodeReader
class.
- Parameters:
image
- The image.type
- The BarCodeReadType.
BarCodeReader
public BarCodeReader(java.lang.String filename)
BarCodeReader constructor
BarCodeReader
public BarCodeReader(java.lang.String filename, long type)
Initializes a new instance of the
BarCodeReader
class.
Method Detail close
public void close()
Closes com.aspose.barcode reader.
dispose
public void dispose()
Release resource
finalize
protected void finalize()
- Overrides:
finalize
in classjava.lang.Object
getBarCodeOrientation
public int getBarCodeOrientation()
getCheckSum
public java.lang.String getCheckSum()
getChecksumValidation
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.
getCodeBytes
public byte[] getCodeBytes()
getCodeText
public java.lang.String getCodeText()
Gets the code text.
- Returns:
- The code text of the com.aspose.barcode.
getCustomerInformationInterpretingType
public int getCustomerInformationInterpretingType()
Gets the Interpreting Type for the Customer Information of AustralianPost BarCode.Default is CustomerInformationInterpretingType.Other.
getCustomizedScanStrength
public int getCustomizedScanStrength()
- Gets the ScanStrength, value range is 1(weakest) to 100(strongest).
getCustomizedThreshold
public int getCustomizedThreshold()
Gets the the threshold value.This property works only the ThresholdHints.Customized Hints was set.
getExpectedBarCodeCount
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.
getImageBinarizationHints
public int getImageBinarizationHints()
Gets the image binarization hints.
Value: The image binarization hints. Default value is None.
getMacroPdf417FileID
public java.lang.String getMacroPdf417FileID()
Gets the file ID of the com.aspose.barcode, only available with MacroPdf417.
- Returns:
- The file ID for MacroPdf417
getMacroPdf417LastSegment
public boolean getMacroPdf417LastSegment()
Gets the last segment flag,only available with MacroPdf417..
- Returns:
- True if it's the last segment.
getMacroPdf417SegmentID
public int getMacroPdf417SegmentID()
Gets the segment ID of the com.aspose.barcode,only available with MacroPdf417.
- Returns:
getOrientationHints
public int getOrientationHints()
Gets the orientation hints.
Value: The orientation hints. Default value is NoRotate.
getReadType
public long getReadType()
Gets the com.aspose.barcode type.
- Returns:
- The type information of the recognized com.aspose.barcode.
getRegion
public BarCodeRegion getRegion()
Gets the com.aspose.barcode region.
- Returns:
- The region of the recognized com.aspose.barcode.
getStripFNC
public boolean getStripFNC()
Strip FNC1, FNC2, FNC3 characters from codetext. Default value is false.
getTimeout
public int getTimeout()
isLicensed
public static boolean isLicensed()
Gets a value indicating whether recognition module is licensed.
Value:true
if recognition module is licensed; otherwise,false
.
read
public boolean read()
Reads com.aspose.barcode from the image.
Detect AllSupportedTypes
- Returns:
- True if the next com.aspose.barcode was read successfully; false if there are no more nodes to read.
setChecksumValidation
public void setChecksumValidation(int value)
setCustomerInformationInterpretingType
public void setCustomerInformationInterpretingType(int value)
Sets the Interpreting Type for the Customer Information of AustralianPost BarCode.Default is CustomerInformationInterpretingType.Other.
setCustomizedScanStrength
public void setCustomizedScanStrength(int value)
- Sets the ScanStrength, value range is 1(weakest) to 100(strongest).
setCustomizedThreshold
public void setCustomizedThreshold(int value)
Sets the the threshold value.This property works only the ThresholdHints.Customized Hints was set.
setExpectedBarCodeCount
public void setExpectedBarCodeCount(int value)
setImageBinarizationHints
public void setImageBinarizationHints(int value)
Sets the image binarization hints.
Value: The image binarization hints. Default value is None.
setOrientationHints
public void setOrientationHints(int value)
Sets the orientation hints.
Value: The orientation hints. Default value is NoRotate.
setStripFNC
public void setStripFNC(boolean value)
setTimeout
public void setTimeout(int value)
Overview Package Class Use Tree Index Help PREV CLASS NEXT CLASS FRAMES NO FRAMES SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD