DataMatrixDetectionParams
Description
Specifies how data matrix codes are being detected.Structure Fields
Type fields and default values (if defined) are described below:
Name | Type | Default | Description |
---|---|---|---|
ContrastThreshold | Integer | 10 | Guaranteed gray level difference between dark and bright modules |
ContrastHysteresis | Integer | 0 | A value dynamically subtracted from ContrastThreshold to improve local segmentation |
ContrastPerturbations | Integer | 0 | Number of perturbations applied to ContrastThreshold for improving possibility of detection when lighting conditions are highly variable |
DynamicSNRatio | Integer* | Signal-to-Noise Ratio that dynamically increases ContrastThreshold; use with low values of ContrastThreshold | |
NonBinarySegmentation | Bool | Assumes that there might be pixels significantly brighter or darker than the foreground or the background modules in near proximity of the quiet zone; use with DetectionMethod=FinderPattern | |
ForceIsotropy | Bool | Switches to image preprocessing methods that give more stable results for different code rotations | |
DetectionMethod | DataMatrixDetectionMethod | FinderEdges | Specifies which feature is used for code detection: the shape of the finder pattern or the blob of the quiet zone |
PyramidStrategy | DataMatrixPyramidStrategy | Precise | Specifies the step of image downsampling used for finding codes at different scales |
OutlineStrategy | DataMatrixOutlineStrategy | Precise | Specifies precision of outline detection |
FinderTradeoff | DataMatrixFinderTradeoff* | Balanced | Decides whether to optimize parameters for weak edges (sensitive) or for jagged ones (robust). |