Configuration class for Pharmacode. More...
Public Member Functions | |
cvb.code_reader.Pharmacode | disable (self) |
Disables decoding. | |
cvb.code_reader.Pharmacode | enable (self) |
Enables decoding. | |
Properties | |
is_enabled = property | |
bool: Indicates whether decoding for this symbology is enabled. | |
max_num_bars = property | |
int: Gets or sets the maximum number of bars. | |
max_value = property | |
int: Gets or sets the maximum value. | |
min_num_bars = property | |
int: Gets or sets the minimum number of bars. | |
min_value = property | |
int: Gets or sets the minimum value. | |
Configuration class for Pharmacode.
Use this class to configure decoding options for Pharmacode. To access the configuration and enable decoding Pharmacode, 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.Pharmacode disable | ( | self | ) |
Disables decoding.
cvb.code_reader.Pharmacode A reference to the current configuration object for method chaining.
cvb.code_reader.Pharmacode enable | ( | self | ) |
Enables decoding.
cvb.code_reader.Pharmacode 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 |
int: Gets or sets the maximum number of bars.
Value has to be between 4 and 16 (inclusive) and greater than min_num_bars.
|
static |
int: Gets or sets the maximum value.
Value has to be between 15 and 131070 (inclusive) and greater than min_value.
|
static |
int: Gets or sets the minimum number of bars.
Value has to be between 4 and 16 (inclusive).
|
static |
int: Gets or sets the minimum value.
Value has to be between 15 and 131070 (inclusive).