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

Recognition mode which sets size (from 1 to infinity) of barcode minimal element: matrix cell or bar. More...

Inherits Enum.

Static Public Attributes

int AUTO = 0
 Value of XDimension is detected by AI (SVM). More...
 
int LARGE = 3
 Detects barcodes with large XDimension with quality from BarcodeQuality captured with high-resolution cameras. More...
 
int NORMAL = 2
 Detects barcodes with classic XDimension in 2 pixels or more with quality from BarcodeQuality or high quality barcodes. More...
 
int SMALL = 1
 Detects barcodes with small XDimension in 1 pixel or more with quality from BarcodeQuality More...
 
int USE_MINIMAL_X_DIMENSION = 4
 Detects barcodes from size set in MinimalXDimension with quality from BarcodeQuality More...
 

Detailed Description

Recognition mode which sets size (from 1 to infinity) of barcode minimal element: matrix cell or bar.

This sample shows how to use XDimension mode

reader = Recognition.BarCodeReader(self.image_path_code39, None,[Recognition.DecodeType.CODE_39_FULL_ASCII, Recognition.DecodeType.CODE_128])
reader.getQualitySettings().setXDimension(Recognition.XDimensionMode.SMALL)
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

Value of XDimension is detected by AI (SVM).

At this time the same as Normal

◆ LARGE

int LARGE = 3
static

Detects barcodes with large XDimension with quality from BarcodeQuality captured with high-resolution cameras.

◆ NORMAL

int NORMAL = 2
static

Detects barcodes with classic XDimension in 2 pixels or more with quality from BarcodeQuality or high quality barcodes.

◆ SMALL

int SMALL = 1
static

Detects barcodes with small XDimension in 1 pixel or more with quality from BarcodeQuality

◆ USE_MINIMAL_X_DIMENSION

int USE_MINIMAL_X_DIMENSION = 4
static

Detects barcodes from size set in MinimalXDimension with quality from BarcodeQuality