CVBpy 15.0
DataMatrix Class Reference

Configuration class for Data Matrix codes. More...

Inherits object.

Public Member Functions

cvb.barcode.DataMatrix disable (self)
 Disables decoding. More...
 
cvb.barcode.DataMatrix enable (self)
 Enables decoding. More...
 

Properties

 is_enabled = property
 bool: Checks if decoding is enabled. More...
 
 is_mirroring_enabled = property
 bool: Gets or sets the status of the mirroring feature. More...
 
 polarity = property
 int: Gets or sets the polarity mode for decoding (see cvb.barcode.Polarity).
 
 rectangular_decoding = property
 int: Gets or sets the rectangular decoding mode (see cvb.barcode.RectangularDecoding).
 

Detailed Description

Configuration class for Data Matrix codes.

Use this class to configure decoding options for Data Matrix barcodes. To access the configuration and enable decoding Data Matrix barcodes, use the following example. For additional details on configuration, refer to the documentation for Decoder.config().

decoder.config(cvb.barcode.Symbology.DataMatrix).enable()
cvb.barcode.Decoder create()
Creates and returns a new decoder object.
Definition: __init__.py:142

A more comprehensive code example demonstrating configuration in a broader context, as well as the decoding process, can be found here.

Note, that ECC0-140 is not supported.

Member Function Documentation

◆ disable()

cvb.barcode.DataMatrix disable (   self)

Disables decoding.

Returns

cvb.barcode.DataMatrix A reference to the current configuration object for method chaining.

◆ enable()

cvb.barcode.DataMatrix enable (   self)

Enables decoding.

Returns

cvb.barcode.DataMatrix A reference to the current configuration object for method chaining.

Property Documentation

◆ is_enabled

is_enabled = property
static

bool: Checks if decoding is enabled.

True if decoding is enabled, False otherwise.

◆ is_mirroring_enabled

is_mirroring_enabled = property
static

bool: Gets or sets the status of the mirroring feature.

True if the mirroring feature is enabled, False otherwise.