|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.spire.barcode.implementation.scanner.reader.BarcodeReader
public class BarcodeReader
Constructor Summary | |
---|---|
BarcodeReader()
Initializes a new instance of the BarcodeReader class with default values. |
|
BarcodeReader(com.spire.ms.System.Drawing.Bitmap image)
Initializes a new instance of the BarcodeReader class from an image. |
|
BarcodeReader(com.spire.ms.System.Drawing.Bitmap image,
BarCodeReadType type)
Initializes a new instance of the BarcodeReader class. |
|
BarcodeReader(com.spire.ms.System.Drawing.Bitmap image,
com.spire.ms.System.Drawing.Rectangle area,
BarCodeReadType type)
Initializes a new instance of the BarcodeReader class. |
|
BarcodeReader(com.spire.ms.System.IO.Stream stream)
Initializes a new instance of the BarcodeReader class. |
|
BarcodeReader(com.spire.ms.System.IO.Stream stream,
BarCodeReadType type)
Initializes a new instance of the BarcodeReader class. |
|
BarcodeReader(java.lang.String filename)
Initializes a new instance of the BarcodeReader class from file. |
|
BarcodeReader(java.lang.String filename,
BarCodeReadType type)
Initializes a new instance of the BarcodeReader class. |
Method Summary | |
---|---|
void |
close()
Closes barcode reader. |
BarcodeReader.PossibleBarCode[] |
getAllPossibleBarCodes()
Gets all possible barcodes found. |
float |
getAngle()
Gets the angle of the barcode (0-360). |
java.lang.String |
getCheckSum()
Gets the checksum for 1D barcodes. |
ChecksumValidation |
getChecksumValidation()
|
byte[] |
getCodeBytes()
Gets the encoded code bytes. |
java.lang.String |
getCodeText()
Gets the code text. |
java.lang.String |
getCodeText(com.spire.ms.System.Text.Encoding encoding)
Gets the code text with encoding. |
int |
getExpectedBarCodeCount()
Expected barcodes to be found.The reader will stop reading the image once it found barcodes more than this value. |
RecognitionHints.ImageBinarization |
getImageBinarizationHints()
Gets the image binarization hints. |
int |
getMacroPdf417FileID()
Gets the file ID of the barcode, only available with MacroPdf417. |
int |
getMacroPdf417SegmentID()
Gets the segment ID of the barcode,only available with MacroPdf417. |
int |
getMacroPdf417SegmentsCount()
Gets macro pdf417 barcode segments count. |
int |
getMedianSmoothingWindowSize()
Gets the median smoothing window size. |
RecognitionHints.Orientation |
getOrientationHints()
Gets the orientation hints. |
int |
getQRStructuredAppendModeBarCodeIndex()
Gets the index of the QR structured append mode barcode. |
int |
getQRStructuredAppendModeBarCodesQuantity()
Gets the QR structured append mode barcodes quantity. |
int |
getQRStructuredAppendModeParityData()
Gets the QR structured append mode parity data. |
BarCodeReadType |
getReadType()
Gets the barcode type. |
float |
getRecognitionQuality()
Gets the recognition quality. |
CodeDataRegion |
getRegion()
Gets the barcode DataRegion. |
boolean |
getStripFNC()
Strip FNC1, FNC2, FNC3 characters from codetext. |
int |
getTimeout()
Gets the timeout of recognition process. |
UserInfoType |
getUserInfoType()
Gets the Interpreting Type for the Customer Information of AustralianPost BarCode.Default is UserInfoType.Other. |
static boolean |
isLicensed()
Gets a value indicating whether recognition module is licensed. |
boolean |
isWriteWarning()
|
boolean |
read()
Reads barcode from the image. |
void |
setBarCodeImage(com.spire.ms.System.Drawing.Bitmap value)
Sets bitmap image for recognition. |
void |
setBarCodeImage(java.lang.String filename)
Sets image file for recogniton. |
void |
setBarCodeReadType(BarCodeReadType type)
Sets BarCodeReadType for recognition. |
void |
setChecksumValidation(ChecksumValidation value)
|
void |
setExpectedBarCodeCount(int value)
Expected barcodes to be found.The reader will stop reading the image once it found barcodes more than this value. |
void |
setImageBinarizationHints(RecognitionHints.ImageBinarization value)
Sets the image binarization hints. |
void |
setMedianSmoothingWindowSize(int value)
Sets the median smoothing window size. |
void |
setOrientationHints(RecognitionHints.Orientation value)
Gets the orientation hints. |
void |
setStripFNC(boolean value)
Strip FNC1, FNC2, FNC3 characters from codetext. |
void |
setUserInfoType(UserInfoType value)
Sets the Interpreting Type for the Customer Information of AustralianPost BarCode.Default is UserInfoType.Other. |
Constructor Detail |
---|
public BarcodeReader()
BarcodeReader
class with default values.
Requires to set image (SetBitmapImage()) before to call Read() method.
public BarcodeReader(com.spire.ms.System.Drawing.Bitmap image)
BarcodeReader
class from an image.
image
- A Bitmap instance containing the imagepublic BarcodeReader(com.spire.ms.System.Drawing.Bitmap image, BarCodeReadType type)
BarcodeReader
class.
image
- The image.type
- The BarCodeReadType.public BarcodeReader(com.spire.ms.System.Drawing.Bitmap image, com.spire.ms.System.Drawing.Rectangle area, BarCodeReadType type)
BarcodeReader
class.
Not support compact framework.
image
- The image.area
- The area for recognition.type
- The BarCodeReadType.public BarcodeReader(java.lang.String filename)
BarcodeReader
class from file.
filename
- The filename.
java.lang.Exception
public BarcodeReader(java.lang.String filename, BarCodeReadType type)
BarcodeReader
class.
filename
- The filename.type
- The BarCodeReadType.
java.lang.Exception
public BarcodeReader(com.spire.ms.System.IO.Stream stream)
BarcodeReader
class.
stream
- The stream.public BarcodeReader(com.spire.ms.System.IO.Stream stream, BarCodeReadType type)
BarcodeReader
class.
stream
- The stream.type
- The The BarCodeReadType.Method Detail |
---|
public boolean isWriteWarning()
public static boolean isLicensed()
public int getTimeout()
public ChecksumValidation getChecksumValidation()
public void setChecksumValidation(ChecksumValidation value)
public int getMedianSmoothingWindowSize()
public void setMedianSmoothingWindowSize(int value)
value
- public int getExpectedBarCodeCount()
public void setExpectedBarCodeCount(int value)
value
- public boolean getStripFNC()
public void setStripFNC(boolean value)
value
- public UserInfoType getUserInfoType()
public void setUserInfoType(UserInfoType value)
value
- public void close()
public boolean read()
public RecognitionHints.Orientation getOrientationHints()
public void setOrientationHints(RecognitionHints.Orientation value)
value
- public RecognitionHints.ImageBinarization getImageBinarizationHints()
public void setImageBinarizationHints(RecognitionHints.ImageBinarization value)
value
- public java.lang.String getCodeText()
public java.lang.String getCodeText(com.spire.ms.System.Text.Encoding encoding)
encoding
- The encoding for codetext.
public java.lang.String getCheckSum()
public float getAngle()
public byte[] getCodeBytes()
public int getMacroPdf417FileID()
public int getMacroPdf417SegmentID()
public int getMacroPdf417SegmentsCount()
public int getQRStructuredAppendModeBarCodesQuantity()
public int getQRStructuredAppendModeBarCodeIndex()
public int getQRStructuredAppendModeParityData()
public CodeDataRegion getRegion()
public BarCodeReadType getReadType()
public float getRecognitionQuality()
public BarcodeReader.PossibleBarCode[] getAllPossibleBarCodes()
public void setBarCodeImage(com.spire.ms.System.Drawing.Bitmap value)
value
- The bitmap image for recognition.public void setBarCodeImage(java.lang.String filename)
filename
- The image file for recogniton.
java.lang.Exception
public void setBarCodeReadType(BarCodeReadType type)
type
- The type of barcode to read.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |