Configuration class for Interleaved 2 of 5 codes. More...
Public Member Functions | |
cvb.code_reader.Interleaved2of5 | disable (self) |
Disables decoding. | |
cvb.code_reader.Interleaved2of5 | enable (self) |
Enables 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_rejected_partial_enabled = property | |
bool: Gets or sets whether rejection of partial codes 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 Interleaved 2 of 5 codes.
Use this class to configure decoding options for Interleaved 2 of 5 codes. To access the configuration and enable decoding Interleaved 2 of 5 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.Interleaved2of5 disable | ( | self | ) |
Disables decoding.
cvb.code_reader.Interleaved2of5 A reference to the current configuration object for method chaining.
cvb.code_reader.Interleaved2of5 enable | ( | self | ) |
Enables decoding.
cvb.code_reader.Interleaved2of5 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.
|
static |
bool: Gets or sets whether rejection of partial codes is enabled.
Enables or disables the rejection of partial Interleaved 2 of 5 codes. When this feature is enabled, the decoder becomes less likely to mistakenly decode a damaged or truncated code, such as when part of the code is missing due to its position in the image. Set to true
to enable rejection of partial codes, or false
to disable it.
|
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.