Aspose.Barcode for Python via Java Generation and Recognition API docs
asposebarcode.Recognition.BarCodeResult Class Reference

Stores recognized barcode data like SingleDecodeType type,. More...

Inherits asposebarcode.Assist.BaseJavaClass.

Public Member Functions

def __init__ (self, javaClass)
 
def init (self)
 
def getReadingQuality (self)
 Gets the reading quality. More...
 
def getConfidence (self)
 Gets recognition confidence level of the recognized barcode Value: BarCodeConfidence. More...
 
def getCodeText (self)
 Gets the code text Value: The code text of the barcode. More...
 
def getCodeBytes (self)
 Gets the encoded code bytes Value: The code bytes of the barcode. More...
 
def getCodeType (self)
 Gets the barcode type Value: The type information of the recognized barcode. More...
 
def getCodeTypeName (self)
 Gets the name of the barcode type Value: The type name of the recognized barcode. More...
 
def getRegion (self)
 Gets the barcode region Value: The region of the recognized barcode. More...
 
def getExtended (self)
 Gets extended parameters of recognized barcode Value: The extended parameters of recognized barcode. More...
 
def equals (self, other)
 Returns a value indicating whether this instance is equal to a specified BarCodeResult value. More...
 
def hashCode (self)
 Returns the hash code for this instance. More...
 
def toString (self)
 Returns a human-readable string representation of this BarCodeResult. More...
 
def deepClone (self)
 Creates a copy of BarCodeResult class. More...
 
- Public Member Functions inherited from asposebarcode.Assist.BaseJavaClass
def getJavaClass (self)
 
def setJavaClass (self, javaClass)
 
def getJavaClassName (self)
 
def isNull (self)
 
def printJavaClassName (self)
 

Public Attributes

 region
 
 extended
 
- Public Attributes inherited from asposebarcode.Assist.BaseJavaClass
 javaClass
 
 javaClassName
 

Detailed Description

Stores recognized barcode data like SingleDecodeType type,.

string

codetext, BarCodeRegionParameters region and other parameters This sample shows how to obtain BarCodeResult.

generator = BarcodeGenerator(EncodeTypes.Code128, "12345")
generator.save("test.png")
reader = BarCodeReader("test.png", None, [ DecodeType.CODE_39_STANDARD, DecodeType.CODE_128 ])
for result in reader.readBarCodes():
print("BarCode Type: " + result.getCodeTypeName())
print("BarCode CodeText: " + result.getCodeText())
print("BarCode Confidence: " + result.getConfidence())
print("BarCode ReadingQuality: " + result.getReadingQuality())
print("BarCode Angle: " + result.getRegion().getAngle())

Constructor & Destructor Documentation

◆ __init__()

def asposebarcode.Recognition.BarCodeResult.__init__ (   self,
  javaClass 
)

Member Function Documentation

◆ deepClone()

def asposebarcode.Recognition.BarCodeResult.deepClone (   self)

Creates a copy of BarCodeResult class.

:return: Returns copy of BarCodeResult class.

◆ equals()

def asposebarcode.Recognition.BarCodeResult.equals (   self,
  other 
)

Returns a value indicating whether this instance is equal to a specified BarCodeResult value.

:param: other An BarCodeResult value to compare to this instance. :return: true if obj has the same value as this instance otherwise, false.

◆ getCodeBytes()

def asposebarcode.Recognition.BarCodeResult.getCodeBytes (   self)

Gets the encoded code bytes Value: The code bytes of the barcode.

◆ getCodeText()

def asposebarcode.Recognition.BarCodeResult.getCodeText (   self)

Gets the code text Value: The code text of the barcode.

◆ getCodeType()

def asposebarcode.Recognition.BarCodeResult.getCodeType (   self)

Gets the barcode type Value: The type information of the recognized barcode.

◆ getCodeTypeName()

def asposebarcode.Recognition.BarCodeResult.getCodeTypeName (   self)

Gets the name of the barcode type Value: The type name of the recognized barcode.

◆ getConfidence()

def asposebarcode.Recognition.BarCodeResult.getConfidence (   self)

Gets recognition confidence level of the recognized barcode Value: BarCodeConfidence.

Strong does not have fakes or misrecognitions, BarCodeConfidence.Moderate could sometimes have fakes or incorrect codetext because this confidence
level for barcodews with weak cheksum or even without it,

BarCodeConfidence.NONE always has incorrect codetext and could be fake recognitions

◆ getExtended()

def asposebarcode.Recognition.BarCodeResult.getExtended (   self)

Gets extended parameters of recognized barcode Value: The extended parameters of recognized barcode.

◆ getReadingQuality()

def asposebarcode.Recognition.BarCodeResult.getReadingQuality (   self)

Gets the reading quality.

Works for 1D and postal barcodes. Value: The reading quality percent

◆ getRegion()

def asposebarcode.Recognition.BarCodeResult.getRegion (   self)

Gets the barcode region Value: The region of the recognized barcode.

◆ hashCode()

def asposebarcode.Recognition.BarCodeResult.hashCode (   self)

Returns the hash code for this instance.

:return: A 32-bit signed integer hash code.

◆ init()

def asposebarcode.Recognition.BarCodeResult.init (   self)

◆ toString()

def asposebarcode.Recognition.BarCodeResult.toString (   self)

Returns a human-readable string representation of this BarCodeResult.

:return: A string that represents this BarCodeResult.

Member Data Documentation

◆ extended

asposebarcode.Recognition.BarCodeResult.extended

◆ region

asposebarcode.Recognition.BarCodeResult.region