Aspose.Barcode for Python via Java Generation and Recognition API docs

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

Inherits 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 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 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", BarCodeImageFormat.PNG)
reader = Recognition.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 __init__ (   self,
  javaClass 
)

Reimplemented from BaseJavaClass.

Member Function Documentation

◆ deepClone()

def deepClone (   self)

Creates a copy of BarCodeResult class.

Returns
: Returns copy of BarCodeResult class.

◆ equals()

def equals (   self,
  other 
)

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

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

◆ getCodeBytes()

def getCodeBytes (   self)

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

◆ getCodeText()

def getCodeText (   self)

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

◆ getCodeType()

def getCodeType (   self)

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

◆ getCodeTypeName()

def getCodeTypeName (   self)

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

◆ getConfidence()

def 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 getExtended (   self)

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

◆ getReadingQuality()

def getReadingQuality (   self)

Gets the reading quality.

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

◆ getRegion()

def getRegion (   self)

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

◆ hashCode()

def hashCode (   self)

Returns the hash code for this instance.

Returns
: A 32-bit signed integer hash code.

◆ init()

def init (   self)

Reimplemented from BaseJavaClass.

◆ toString()

def toString (   self)

Returns a human-readable string representation of this BarCodeResult.

Returns
: A string that represents this BarCodeResult.

Member Data Documentation

◆ extended

extended

◆ region

region