CVBpy 15.0
Loading...
Searching...
No Matches
Pharmacode Class Reference

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.
 

Detailed Description

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().

decoder.config(cvb.code_reader.Symbology.Pharmacode).enable()
cvb.code_reader.Decoder create()
Creates and returns a new decoder object.
Definition __init__.py:496

A more comprehensive code example demonstrating configuration in a broader context, as well as the decoding process, can be found here.

Member Function Documentation

◆ disable()

cvb.code_reader.Pharmacode disable ( self)

Disables decoding.

Returns

cvb.code_reader.Pharmacode A reference to the current configuration object for method chaining.

◆ enable()

Enables decoding.

Returns

cvb.code_reader.Pharmacode A reference to the current configuration object for method chaining.

Property Documentation

◆ is_enabled

is_enabled = property
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.

◆ max_num_bars

max_num_bars = property
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.

◆ max_value

max_value = property
static

int: Gets or sets the maximum value.

Value has to be between 15 and 131070 (inclusive) and greater than min_value.

◆ min_num_bars

min_num_bars = property
static

int: Gets or sets the minimum number of bars.

Value has to be between 4 and 16 (inclusive).

◆ min_value

min_value = property
static

int: Gets or sets the minimum value.

Value has to be between 15 and 131070 (inclusive).