Configuration class for Code 11 codes. More...
Public Member Functions | |
cvb.code_reader.Code11 | disable (self) |
Disables decoding. | |
cvb.code_reader.Code11 | enable (self) |
Enables decoding. | |
cvb.code_reader.Code11 | set_checksum_enabled (self, int num_digits, bool strip) |
Configures checksum for decoding. | |
Properties | |
is_checksum_enabled = property | |
int: Gets or sets checksum configuration for decoding. | |
is_enabled = property | |
bool: Indicates whether decoding for this symbology is enabled. | |
is_strip_char_enabled = property | |
bool: Gets or sets removing checksum character(s) in decoded data is enabled. | |
Configuration class for Code 11 codes.
Use this class to configure decoding options for Code 11 codes. To access the configuration and enable decoding Code 11 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.Code11 disable | ( | self | ) |
Disables decoding.
cvb.code_reader.Code11 A reference to the current configuration object for method chaining.
cvb.code_reader.Code11 enable | ( | self | ) |
Enables decoding.
cvb.code_reader.Code11 A reference to the current configuration object for method chaining.
cvb.code_reader.Code11 set_checksum_enabled | ( | self, | |
int | num_digits, | ||
bool | strip ) |
Configures checksum for decoding.
num_digits : int Value for checksum configuration.
strip : bool Set to True
to enable removing checksum character(s) in decoded data, false otherwise.
cvb.code_reader.Code11 A reference to the current configuration object for method chaining.
|
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.