Aspose.BarCode for Python via Java  24.11
Aspose.Barcode for Python via Java Generation and Recognition API docs
QRExtendedParameters Class Reference

Stores a QR Structured Append information of recognized barcode. More...

Inherits BaseJavaClass.

Public Member Functions

def __init__ (self, javaClass)
 
bool __eq__ (self, QRExtendedParameters other)
 Returns a value indicating whether this instance is equal to a specified QRExtendedParameters value. More...
 
int __hash__ (self)
 Returns the hash code for the current instance. More...
 
str __str__ (self)
 Returns a human-readable string representation of this QRExtendedParameters. More...
 
int getMicroQRVersion (self)
 Version of recognized MicroQR Code. More...
 
int getQRErrorLevel (self)
 Version of recognized RectMicroQR Code. More...
 
int getQRStructuredAppendModeBarCodeIndex (self)
 Gets the index of the QR structured append mode barcode. More...
 
int getQRStructuredAppendModeBarCodesQuantity (self)
 Gets the QR structured append mode barcodes quantity. More...
 
int getQRStructuredAppendModeParityData (self)
 Gets the QR structured append mode parity data. More...
 
int getQRVersion (self)
 Version of recognized QR Code. More...
 
int getRectMicroQRVersion (self)
 Version of recognized RectMicroQR Code. More...
 
None init (self)
 
bool isEmpty (self)
 Tests whether all parameters have only default values. More...
 
- Public Member Functions inherited from BaseJavaClass
def getJavaClass (self)
 
str getJavaClassName (self)
 
bool isNull (self)
 
None printJavaClassName (self)
 
None setJavaClass (self, javaClass)
 

Additional Inherited Members

- Public Attributes inherited from BaseJavaClass
 javaClass
 
 javaClassName
 

Detailed Description

Stores a QR Structured Append information of recognized barcode.

This sample shows how to get QR Structured Append data

reader = Recognition.BarCodeReader(self.image_path_qr, None, Recognition.DecodeType.QR)
for result in reader.readBarCodes():
print(f"\nBarCode Type: {result.getCodeTypeName()}")
print(f"BarCode CodeText: {result.getCodeText()}")
print(f"QR Structured Append Quantity: {str(result.getExtended().getQR().getQRStructuredAppendModeBarCodesQuantity())}")
print(f"QR Structured Append Index: {result.getExtended().getQR().getQRStructuredAppendModeBarCodeIndex()}")
print(f"QR Structured Append ParityData: {result.getExtended().getQR().getQRStructuredAppendModeParityData()}")

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  javaClass 
)

Reimplemented from BaseJavaClass.

Member Function Documentation

◆ __eq__()

bool __eq__ (   self,
QRExtendedParameters  other 
)

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

Parameters
obj An object value to compare to this instance.
Returns
: True if obj has the same value as this instance otherwise False.

◆ __hash__()

int __hash__ (   self)

Returns the hash code for the current instance.

Returns
A hash code for the current object.

◆ __str__()

str __str__ (   self)

Returns a human-readable string representation of this QRExtendedParameters.

Returns
: A string that represents this QRExtendedParameters.

◆ getMicroQRVersion()

int getMicroQRVersion (   self)

Version of recognized MicroQR Code.

From M1 to M4.

Returns
: Version of recognized MicroQR Code. From M1 to M4.

◆ getQRErrorLevel()

int getQRErrorLevel (   self)

Version of recognized RectMicroQR Code.

From R7x43 to R17x139.

Returns
: Version of recognized RectMicroQR Code

◆ getQRStructuredAppendModeBarCodeIndex()

int getQRStructuredAppendModeBarCodeIndex (   self)

Gets the index of the QR structured append mode barcode.

Index starts from 0. Default value is -1. Value: The quantity of the QR structured append mode barcode.

◆ getQRStructuredAppendModeBarCodesQuantity()

int getQRStructuredAppendModeBarCodesQuantity (   self)

Gets the QR structured append mode barcodes quantity.

Default value is -1. Value: The quantity of the QR structured append mode barcode.

◆ getQRStructuredAppendModeParityData()

int getQRStructuredAppendModeParityData (   self)

Gets the QR structured append mode parity data.

Default value is -1. Value: The index of the QR structured append mode barcode.

◆ getQRVersion()

int getQRVersion (   self)

Version of recognized QR Code.

From Version1 to Version40.

Returns
: Version of recognized QR Code

◆ getRectMicroQRVersion()

int getRectMicroQRVersion (   self)

Version of recognized RectMicroQR Code.

From R7x43 to R17x139.

Returns
: Version of recognized RectMicroQR Code

◆ init()

None init (   self)

Reimplemented from BaseJavaClass.

◆ isEmpty()

bool isEmpty (   self)

Tests whether all parameters have only default values.

Returns
: Returns True if all parameters have only default values; otherwise False.