Configuration class for Code 128 codes. More...
Public Member Functions | |
cvb.code_reader.Code128 | disable (self) |
Disables decoding. | |
cvb.code_reader.Code128 | enable (self) |
Enables decoding. | |
Properties | |
enhancement_method = property | |
int: Gets or sets enhancement method for decoding. | |
is_enabled = property | |
bool: Indicates whether decoding for this symbology is enabled. | |
max_data_length = property | |
int: Gets or sets the maximum data length. | |
min_data_length = property | |
int: Gets or sets the minimum data length. | |
Configuration class for Code 128 codes.
Use this class to configure decoding options for Code 128 codes. To access the configuration and enable decoding Code 128 codes, use the following example. For additional details on configuration, refer to the documentation for Decoder.config().
A more comprehensive code example demonstrating configuration in a broader context, as well as the decoding process, can be found here.
cvb.code_reader.Code128 disable | ( | self | ) |
Disables decoding.
cvb.code_reader.Code128 A reference to the current configuration object for method chaining.
cvb.code_reader.Code128 enable | ( | self | ) |
Enables decoding.
cvb.code_reader.Code128 A reference to the current configuration object for method chaining.
|
static |
int: Gets or sets enhancement method for decoding.
Allows enabling or disabling specific enhancement methods required for decoding. When enabled, these methods improve the ability to decode poorly printed Code 128 barcodes.By default, enhancement methods are disabled.
|
static |
bool: Indicates whether decoding for this symbology is enabled.
Can be used to check the status or to enable/disable decoding directly.True
if decoding is enabled, False
otherwise.
|
static |
int: Gets or sets the maximum data length.
Number of characters of the longest decoded string, up to 120. The default value is 0 for no checking.
|
static |
int: Gets or sets the minimum data length.
Number of characters of the shortest decoded string.