DataMatrixCodeParams
Description
Specifies range of possible data matrix codes.Structure fields and default values (if defined) are described below:
Name | Type | Default | Description |
---|---|---|---|
Polarity | Polarity | Any | Specifies whether code is darker or brighter than the background |
MinRowCount | IntType | 8 | Minimal number of module rows |
MaxRowCount | IntType | 72 | Maximal number of module rows |
MinColumnCount | IntType | 8 | Minimal number of module columns |
MaxColumnCount | IntType | 72 | Maximal number of module columns |
MinModuleSize | FloatType | 4 | Minimal size of a module in pixels |
MaxModuleSize | FloatType | 40 | Maximal size of a module in pixels |
ExpectedGapSize | DataMatrixGapSize | Small | Highest distance between neighboring marks in the Finder Pattern |
MaxRectangleRatio | FloatType | 4.0f | Length ratio between the longer and the shorter side of the code's bounding rectangle |
MaxSlant | FloatType | 20.0f | Maximal deviation from the right angle in the corner of the Finder Pattern |
AllowPerspective | BoolType | true | Allows codes with perspective distortion (up to a certain level) |
AllowOversizedModules | BoolType | true | Allows codes with foreground modules overlapping background modules |
AllowRotation | BoolType | true | Allows codes rotated in relation to the axes of the input image |
AllowDistortion | DataMatrixDistortionLevel | Low | Allows codes which are distorted |
AllowBrokenTiming | BoolType | true | Tries to decode a candidate even if there is no correct Timing Pattern |
AllowBrokenFinder | BoolType | true | Tries to create a candidate even if there are gaps in the Finder Pattern |