Configuration class for Code 39 codes. More...
Public Member Functions | |
cvb.code_reader.Code39 | disable (self) |
Disables decoding. | |
cvb.code_reader.Code39 | enable (self) |
Enables decoding. | |
Properties | |
is_added_start_stop_char_enabled = property | |
bool: Gets or sets whether adding start and stop characters to decoded data is enabled. | |
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_full_ascii_mode_enabled = property | |
bool: Gets or sets whether full ASCII mode 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 39 codes.
Use this class to configure decoding options for Code 39 codes. To access the configuration and enable decoding Code 39 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.Code39 disable | ( | self | ) |
Disables decoding.
cvb.code_reader.Code39 A reference to the current configuration object for method chaining.
cvb.code_reader.Code39 enable | ( | self | ) |
Enables decoding.
cvb.code_reader.Code39 A reference to the current configuration object for method chaining.
|
static |
bool: Gets or sets whether adding start and stop characters to decoded data is enabled.
Set to true
to enable adding start and stop character, or false
to disable it.
|
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 full ASCII mode is enabled.
The Full ASCII mode in Code 39 is an extended encoding mode that allows the representation of all 128 ASCII characters (including lowercase letters, special symbols, and control characters) rather than just the basic 43 characters supported by the standard Code 39. Set to true
to enable the Full ASCII mode, 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.