|
|||||||||
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,
type)
initializes a new instance of the barcodereader class. |
|
(com.spire.ms.system.drawing.bitmap image,
com.spire.ms.system.drawing.rectangle area,
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,
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,
type)
initializes a new instance of the barcodereader class. |
method summary | |
---|---|
void |
close()
closes barcode reader. |
[] |
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. |
|
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. |
|
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. |
|
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. |
|
getreadtype()
gets the barcode type. |
float |
getrecognitionquality()
gets the recognition quality. |
|
getregion()
gets the barcode dataregion. |
boolean |
getstripfnc()
strip fnc1, fnc2, fnc3 characters from codetext. |
int |
gettimeout()
gets the timeout of recognition process. |
|
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( type)
sets barcodereadtype for recognition. |
void |
setchecksumvalidation( 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 |
( value)
sets the image binarization hints. |
void |
setmediansmoothingwindowsize(int value)
sets the median smoothing window size. |
void |
setorientationhints( value)
gets the orientation hints. |
void |
setstripfnc(boolean value)
strip fnc1, fnc2, fnc3 characters from codetext. |
void |
setuserinfotype( 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, 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, 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, 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, type)
barcodereader
class.
stream
- the stream.type
- the the barcodereadtype.method detail |
---|
public boolean iswritewarning()
public static boolean islicensed()
public int gettimeout()
public getchecksumvalidation()
public void setchecksumvalidation( 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 getuserinfotype()
public void setuserinfotype( value)
value
- public void close()
public boolean read()
public getorientationhints()
public void setorientationhints( value)
value
- public getimagebinarizationhints()
public void setimagebinarizationhints( 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 getregion()
public getreadtype()
public float getrecognitionquality()
public [] 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( type)
type
- the type of barcode to read.
|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |