Classic

Code

Code editor or code reader depending on the selected library.

8 config keys · 6 public methods

Import

from Xenonix.Classic import Code

Search this API

Filter methods, arguments, and configuration keys on this page.

Configuration

Use Config(...) with these keys where the class exposes configuration.

Config key Default Common values What it controls
Barcode True Any valid value Barcode setting for Code.
QRCode False Any valid value QRCode setting for Code.
DataMatrix False Any valid value DataMatrix setting for Code.
Rotate True Any valid value Rotate setting for Code.
Downscale True Any valid value Downscale setting for Code.
Invert False Any valid value Invert setting for Code.
Harder False Any valid value Harder setting for Code.
Pure False Any valid value Pure setting for Code.

Public methods

Create

Creates a new Code instance.

Create()

Arguments

No arguments.

Output

Creates a new Code object.

Config_Get

Reads one or more configuration values by name.

Config_Get(*Input)

Arguments

Argument Default Accepted values What it does
Input *args Any valid value Input value used by the operation.

Output

Returns selected configuration values.

Config

Changes one or more supported settings. Pass only the configuration keys you want to update.

Config(**Input)

Arguments

Argument Default Accepted values What it does
Input **kwargs Any valid value Input value used by the operation.

Output

Updates configuration values on the object.

Last_Info

Runs the Last_Info operation for Code.

Last_Info(Index=None)

Arguments

Argument Default Accepted values What it does
Index None Any valid value Index value used by the operation.

Output

Returns the calculated result.

Info

Runs the Info operation for Code.

Info(Text=None, Index=None)

Arguments

Argument Default Accepted values What it does
Text None Any valid value Text value used by the operation.
Index None Any valid value Index value used by the operation.

Output

Returns the calculated result.

Find

Runs the main operation and returns the detected/calculated result.

Find(Frame, Region=None, Pick='All', Index=None)

Arguments

Argument Default Accepted values What it does
Frame Required Any valid value Input image/frame data. Can be an image object, array, or frame accepted by this tool.
Region None Any valid value Region of interest used to limit where the operation runs.
Pick 'All' ALL, FIRST, LAST, INDEX Selects which candidate/result should be returned.
Index None Any valid value Index value used by the operation.

Output

Returns structured data such as a list or dictionary.