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

Mode which enables methods to recognize barcode elements with the selected quality. More...

Inherits Enum.

Static Public Attributes

int HIGH = 0
 Enables recognition methods for High quality barcodes. More...
 
int NORMAL = 1
 Enables recognition methods for Common(Normal) quality barcodes. More...
 

Detailed Description

Mode which enables methods to recognize barcode elements with the selected quality.

Barcode element with lower quality requires more hard methods which slows the recognition.

reader = Recognition.BarCodeReader(self.image_path_code39, None,[Recognition.DecodeType.CODE_39_FULL_ASCII, Recognition.DecodeType.CODE_128])
reader.getQualitySettings().setBarcodeQuality(Recognition.BarcodeQualityMode.LOW)
results = reader.readBarCodes()
for result in results:
print(f"\nBarCode Type: {result.getCodeTypeName()}")
print(f"BarCode CodeText: {result.getCodeText()}")

Member Data Documentation

◆ HIGH

int HIGH = 0
static

Enables recognition methods for High quality barcodes.

◆ NORMAL

int NORMAL = 1
static

Enables recognition methods for Common(Normal) quality barcodes.