SimplifiedDocumentNormalizerSettings
The SimplifiedDocumentNormalizerSettings class contains settings for document normalization. It is a sub-parameter of SimplifiedCaptureVisionSettings
public class SimplifiedDocumentNormalizerSettings
Attributes Summary
| Attribute | Type |
|---|---|
grayscaleTransformationModes |
EnumGrayscaleTransformationMode[] |
grayscaleEnhancementModes |
EnumGrayscaleEnhancementMode[] |
colourMode |
EnumImageColourMode |
pageSize |
int[] |
brightness |
int |
contrast |
int |
maxThreadsInOneTask |
int |
scaleDownThreshold |
int |
minQuadrilateralAreaRatio |
int |
expectedDocumentsCount |
int |
grayscaleTransformationModes
Sets the grayscale transformation modes using an EnumGrayscaleTransformationMode array with 8 elements. View the reference page of GrayscaleTransformationModes for more detail about grayscale transformation modes.
EnumGrayscaleTransformationMode[] grayscaleTransformationModes;
grayscaleEnhancementModes
Sets the grayscale enhancement modes using an EnumGrayscaleEnhancementMode array with 8 elements. View the reference page of GrayscaleEnhancementModes for more detail about grayscale enhancement modes.
EnumGrayscaleEnhancementMode[] grayscaleEnhancementModes;
colourMode
Sets the output image colour mode using an enumeration value from EnumImageColourMode.
EnumImageColourMode colourMode;
Default value
“ICM_COLOUR”
pageSize
Sets the page size (width by height in pixels) of the normalized image.
int[] pageSize;
brightness
Sets the brightness of the normalized image.
int brightness;
Value Range
[-100,100]
Default value
0
contrast
Sets the contrast of the normalized image.
int contrastl
Value Range
[-100,100]
Default value
0
maxThreadsInOneTask
Sets the maximum available threads count in one document normalization task.
int maxThreadsInOneTask;
Value Range
[1, 256]
Default value
4
scaleDownThreshold
Sets the threshold for the image shrinking.
int scaleDownThreshold;
Value Range
[512, 0x7fffffff]
Default Value
2300
Remarks
If the shorter edge size is larger than the given threshold value, the library will calculate the required height and width of the barcode image and shrink the image to that size before detection. Otherwise, the library will perform document detection on the original image.
minQuadrilateralAreaRatio
Sets the minimum ratio between the target document area and the total image area. Only those exceeding this value will be output (measured in percentages).
int minQuadrilateralAreaRatio;
Value Range
[0, 100]
Default value
0
expectedDocumentsCount
Sets the number of documents expected to be detected.
int expectedDocumentsCount;
Value Range
[0, 0x7fffffff]
Default value
1