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

Mode which enables or disables additional recognition of color barcodes on color images. More...

Inherits Enum.

Static Public Attributes

int AUTO = 0
 At this time the same as Disabled. More...
 
int DISABLED = 1
 Disables additional recognition of color barcodes on color images. More...
 
int ENABLED = 2
 Enables additional recognition of color barcodes on color images. More...
 

Detailed Description

Mode which enables or disables additional recognition of color barcodes on color images.

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

Member Data Documentation

◆ AUTO

int AUTO = 0
static

At this time the same as Disabled.

Disables additional recognition of color barcodes on color images.

◆ DISABLED

int DISABLED = 1
static

Disables additional recognition of color barcodes on color images.

◆ ENABLED

int ENABLED = 2
static

Enables additional recognition of color barcodes on color images.