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

Mode which enables or disables additional recognition of barcodes on images with inverted colors (luminance). More...

Inherits Enum.

Static Public Attributes

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

Detailed Description

Mode which enables or disables additional recognition of barcodes on images with inverted colors (luminance).

reader = Recognition.BarCodeReader(self.image_path_code39, None,[Recognition.DecodeType.CODE_39_FULL_ASCII, Recognition.DecodeType.CODE_128])
reader.getQualitySettings().setInverseImage(Recognition.InverseImageMode.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 barcodes on inverse images.

◆ DISABLED

int DISABLED = 1
static

Disables additional recognition of barcodes on inverse images.

◆ ENABLED

int ENABLED = 2
static

Enables additional recognition of barcodes on inverse images