DataMatrixCodeParams

Description

Specifies range of possible data matrix codes.

Structure fields and default values (if defined) are described below:

Name Type Default Description
Polarity atl::Optional<CodePolarity> Any Specifies whether code is darker or brighter than the background
MinRowCount int 8 Minimal number of module rows
MaxRowCount int 72 Maximal number of module rows
MinColumnCount int 8 Minimal number of module columns
MaxColumnCount int 72 Maximal number of module columns
MinModuleSize float 4 Minimal size of a module in pixels
MaxModuleSize float 40 Maximal size of a module in pixels
ExpectedGapSize atl::Optional<DataMatrixGapSize> Small Highest distance between neighboring marks in the Finder Pattern
MaxRectangleRatio atl::Optional<float> 4.0f Length ratio between the longer and the shorter side of the code's bounding rectangle
MaxSlant float 20.0f Maximal deviation from the right angle in the corner of the Finder Pattern
AllowPerspective DataMatrixPerspectiveLevel Low Allows codes with perspective distortion (up to a certain level)
AllowOversizedModules bool true Allows codes with foreground modules overlapping background modules
AllowRotation bool true Allows codes rotated in relation to the axes of the input image
AllowDistortion atl::Optional<DataMatrixDistortionLevel> Low Allows codes which are distorted
AllowBrokenTiming bool true Tries to decode a candidate even if there is no correct Timing Pattern
AllowBrokenFinder bool true Tries to create a candidate even if there are gaps in the Finder Pattern
AllowBrokenCorner bool true Tries to create a candidate even if the bottom-left corner of the code is occluded.
AllowMirrored bool false Allows codes to be mirrored/transposed.