ETcVnDotCodeOptions

Offers DotCode detection options.

Syntax

Definition:

TYPE ETcVnDotCodeOptions :
(
    TCVN_DCO_DEFAULT        := 0,
    TCVN_DCO_BINARY_INPUT   := 1,
    TCVN_DCO_DETECTBLOBS    := 2,
    TCVN_DCO_FILTERCONTOURS := 4,
    TCVN_DCO_REGULAR_COLOR  := 16,
    TCVN_DCO_INVERTED_COLOR := 32
)ULINT;
END_TYPE

Values

Name

Description

TCVN_DCO_DEFAULT

Expects a graylevel image as input and applies the default algorithm (similar to the reference decode algorithm)

TCVN_DCO_BINARY_INPUT

Expects a binary image as input (all pixels must contain 0 or 255, disables internal preprocessing)

TCVN_DCO_DETECTBLOBS

Modifies the default algorithm by using blob detection to find the dots (can't be combined with BINARY_INPUT or FILTERCONTOURS)

TCVN_DCO_FILTERCONTOURS

As a preprocessing step, remove contours connected to the image border and with significantly wrong size (relative to provided fModuleWidth)

TCVN_DCO_REGULAR_COLOR

Only search for regular color (dark code on light background)

TCVN_DCO_INVERTED_COLOR

Only search for inverted color (light code on dark background)