CVBpy 15.0
DataMatrix Class Reference

Configuration to access parameters of DataMatrix. More...

Inherits Reader2DConfigBase.

Properties

 allow_distorted = property
 bool: When set to true, the reader will also read distorted data matrix codes. More...
 
 allow_rectangular = property
 bool: If this parameter is true, it specifies that rectangular codes are permitted for evaluation. More...
 
 dotted_contrast = property
 int: The parameter contrast is a scale for the minimal contrast that must be to find and read the dotted Data Matrix code in the picture. More...
 
 dotted_module_width = property
 int: The module width is the count of pixel*10 of the moduleWidth of one module, it can be calculated with: moduleWidth = whole code width in pixel (without quiet zone) / number of modules * 10 (default 50). More...
 
 dotted_quietzone_width = property
 int: This is the quiet zone around the code in DottedModuleWidth(), normally it is set to 5 module widths. More...
 
 formats = property
 int: Bit field which specifies the permitted coding schemes (also known as format IDs only for ECC 000 to ECC 140; see cvb.barcode.DataMatrixFormats).
 
 levels = property
 int: Bit field which specifies the permitted error correction level (ECCs; see cvb.barcode.DataMatrixLevels).
 
 max_size = property
 int: The DataMatrix.min_size and DataMatrix.max_size parameters to restrict Data Matrix evaluation to certain sizes. More...
 
 min_size = property
 int: The DataMatrix.min_size and DataMatrix.max_size parameters to restrict Data Matrix evaluation to certain sizes. More...
 
 pharma_code_2d_bar1 = property
 int: Parameter to adjust the proofing of the colour bar of field 1 using a quadratic or rectangular 2D Pharmacode (see cvb.barcode.PharmaCode2DDisposition).
 
 pharma_code_2d_bar2 = property
 int: Parameter to adjust the proofing of the colour bar of field 1 using a quadratic or rectangular 2D Pharmacode (see cvb.barcode.PharmaCode2DDisposition).
 
 pharma_code_2d_bar3 = property
 int: Parameter to adjust the proofing of the colour bar of field 3 using a quadratic or rectangular 2D Pharmacode (see cvb.barcode.PharmaCode2DDisposition).
 
 pharma_code_2d_bar4 = property
 int: Parameter to adjust the proofing of the colour bar of field 4 using a quadratic or rectangular 2D Pharmacode (see cvb.barcode.PharmaCode2DDisposition).
 
 pharma_code_2d_bar5 = property
 int: Parameter to adjust the proofing of the colour bar of field 5 using a quadratic or rectangular 2D Pharmacode (see cvb.barcode.PharmaCode2DDisposition).
 
 pharma_code_2d_bar6 = property
 int: Parameter to adjust the proofing of the colour bar of field 6 using a quadratic or rectangular 2D Pharmacode (see cvb.barcode.PharmaCode2DDisposition).
 
 pharma_code_2d_bar7 = property
 int: Parameter to adjust the proofing of the colour bar of field 7 using a quadratic or rectangular 2D Pharmacode (see cvb.barcode.PharmaCode2DDisposition).
 
 pharma_code_2d_bar8 = property
 int: Parameter to adjust the proofing of the colour bar of field 8 using a quadratic or rectangular 2D Pharmacode (see cvb.barcode.PharmaCode2DDisposition).
 
 pharma_code_2d_expanded = property
 bool: The parameter expanded permits a larger tolerance of the colour bars of the 2D Pharmacode (default: false).
 
 pharma_code_2d_threshold = property
 int: Minimum digitalisation threshold of the colour bars in percent (only for 2D Pharmacode) ranging from 0 to 100. More...
 
 sub_type = property
 int: Distinguish between evaluate characteristics of the Data Matrix code (see cvb.barcode.DataMatrixSubType).
 

Detailed Description

Configuration to access parameters of DataMatrix.

Property Documentation

◆ allow_distorted

allow_distorted = property
static

bool: When set to true, the reader will also read distorted data matrix codes.

This flag will not have any effect when reading dotted data matrix codes.

◆ allow_rectangular

allow_rectangular = property
static

bool: If this parameter is true, it specifies that rectangular codes are permitted for evaluation.

Attention: Rectangular codes are defined for ECC 200 only.

◆ dotted_contrast

dotted_contrast = property
static

int: The parameter contrast is a scale for the minimal contrast that must be to find and read the dotted Data Matrix code in the picture.

How inferior the contrast is, the lower the minimum contrast has to be set to read the code.

Normally the value is in the range of 30 to 40 default is 30). Valid values are in the interval [10...100].

◆ dotted_module_width

dotted_module_width = property
static

int: The module width is the count of pixel*10 of the moduleWidth of one module, it can be calculated with: moduleWidth = whole code width in pixel (without quiet zone) / number of modules * 10 (default 50).

Valid values are in the interval [30...150].

◆ dotted_quietzone_width

dotted_quietzone_width = property
static

int: This is the quiet zone around the code in DottedModuleWidth(), normally it is set to 5 module widths.

Only if it is absolute necessary it can set down finally to 3 to read a code with a very short quiet zone (default 5). Valid values are in the interval [3...5].

◆ max_size

max_size = property
static

int: The DataMatrix.min_size and DataMatrix.max_size parameters to restrict Data Matrix evaluation to certain sizes.

The sizes then refer to the number of modules or cells; peripheral structures are counted but quiet zones are not. Valid values are in the interval [7...144].

◆ min_size

min_size = property
static

int: The DataMatrix.min_size and DataMatrix.max_size parameters to restrict Data Matrix evaluation to certain sizes.

The sizes then refer to the number of modules or cells; peripheral structures are counted but quiet zones are not. Valid values are in the interval [7...144].

◆ pharma_code_2d_threshold

pharma_code_2d_threshold = property
static

int: Minimum digitalisation threshold of the colour bars in percent (only for 2D Pharmacode) ranging from 0 to 100.

The default value is 35.