SimplifiedDocumentNormalizerSettings
The SimplifiedDocumentNormalizerSettings class represents a series of simple settings related to the document scanning.
Definition
Assembly: dynamsoft_capture_vision_flutter
class SimplifiedDocumentNormalizerSettings
Properties
| Property | Types | Description |
|---|---|---|
grayscaleTransformationModes |
List<EnumGrayscaleTransformationMode> | An array of GrayscaleTransformationMode. It controls whether to detect the inverted document boundary. |
grayscaleEnhancementModes |
List<EnumGrayscaleEnhancementMode> | An array of GrayscaleEnhancementModes. |
colourMode |
EnumImageColourMode | The grayscale transformation mode. It controls whether to decode the inverted text. |
pageSize |
Size | The page size. |
brightness |
int | The brightness. |
contrast |
int | The contrast. |
maxThreadsInOneTask |
int | The maximum number of threads in one task. |
scaleDownThreshold |
int | The scale down threshold. |
minQuadrilateralAreaRatio |
int | The minimum ratio between the target document area and the total image area. Only those exceeding this value will be output (measured in percentages). |
expectedDocumentsCount |
int | The number of documents expected to be detected. |
grayscaleTransformationModes
Defines the grayscale transformation modes with an array of EnumGrayscaleTransformationMode items. This parameter is important when working with inverted documents, and must be used in order to locate the inverted document boundary.
List<EnumGrayscaleTransformationMode> grayscaleTransformationModes;
grayscaleEnhancementModes
Defines the grayscale enhancement modes with an array of EnumGrayscaleEnhancementModes items. This parameter can be quite powerful in increasing the border detection rate of your application should you experience any trouble in that area. To learn more about the grayscaleEnhancementModes and how they can be used, please visit the main GrayscaleEnhancementModes parameter page.
List<EnumGrayscaleEnhancementMode> grayscaleEnhancementModes;
colourMode
Defines the colour mode of the normalized image with an EnumImageColourMode member. By default, the normalized image will output in colour. In order to make the result image grayscale or binary, setting the colourMode to the corresponding pixel type will do the trick.
EnumImageColourMode colourMode;
pageSize
The page size of the normalized image.
Size pageSize;
brightness
The brightness of the normalized image result.
@IntRange
int brightness;
Range
[-100, 100]
contrast
The contrast of the normalized image result.
int contrast;
Range
[-100,100]
maxThreadsInOneTask
The maximum number of threads dedicated to a single task.
int maxThreadsInOneTask;
scaleDownThreshold
If the original image size is quite large, then the scaledownThreshold can be used to shrink the image and speed up the processing. If the shorter edge size is larger than the defined scale down threshold, the library will calculate the required width and height of the image and shrink it to that size before moving forward in the process.
int scaleDownThreshold;
minQuadrilateralAreaRatio
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;
Range
[0, 100]
If expectedDocumentsCount is 1 && documentType is Document, the range is from 20 to 100.
expectedDocumentsCount
The number of documents expected to be detected.
int expectedDocumentsCount;