CVBpy 15.0

Configuration class for QR codes. More...

Inherited by MicroQR.

Public Member Functions

cvb.barcode.QR disable (self)
 Disables decoding.
 
cvb.barcode.QR enable (self)
 Enables decoding.
 

Properties

 is_enabled = property
 bool: Checks if decoding is enabled.
 
 is_mirroring_enabled = property
 bool: Gets or sets the status of the mirroring feature.
 
 polarity = property
 int: Gets or sets the polarity mode for decoding (see cvb.barcode.Polarity).
 
 precise_corners = property
 bool: Gets or sets the calculation of more precise corner coordinates.
 

Detailed Description

Configuration class for QR codes.

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

decoder.config(cvb.barcode.Symbology.QR).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.

Member Function Documentation

◆ disable()

cvb.barcode.QR disable ( self)

Disables decoding.

Returns

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

◆ enable()

cvb.barcode.QR enable ( self)

Enables decoding.

Returns

cvb.barcode.QR 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.

◆ precise_corners

precise_corners = property
static

bool: Gets or sets the calculation of more precise corner coordinates.

When a QR Code is decoded, the detected corners used for decoding may not be very precise. Use this setting to get more precise corner coordinates. Set to True to enable the calculation of more precise corner coordinates, or False to disable it.