Table of contents

SimplifiedDocumentNormalizerSettings

The SimplifiedDocumentNormalizerSettings class represents a series of simple settings related to the Document Normalizer. Please note that this is not the full list of settings that can be utilized by the Document Normalizer, which you can find on the DCV Parameters page.

Definition

Namespace: Dynamsoft.DocumentNormalizer.Maui

Assembly: Dynamsoft.DocumentNormalizer.Maui

class SimplifiedDocumentNormalizerSettings

Properties

Property Type Description
GrayscaleTransformationModes EnumGrayscaleTransformationMode[] An array of GrayscaleTransformationMode. It controls whether to detect the inverted document boundary.
GrayscaleEnhancementModes EnumGrayscaleEnhancementModes[] 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 outputted (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.

EnumGrayscaleTransformationMode[] GrayscaleTransformationModes { get; set ; }

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.

EnumGrayscaleEnhancementMode[] GrayscaleEnhancementModes { get; set; }

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 { get; set; }

PageSize

Defines the page size of the normalized image through an integer array.

Size PageSize { get; set ; }

Brightness

Defines the brightness of the normalized image result with an integer.

// From -100 to 100
int Brightness { get; set ; }

Contrast

Defines the contrast of the normalized image result with an integer.

// contrast > 512
int Contrast { get; set ; }

MaxThreadsInOneTask

Defines the maximum number of threads dedicated to a single task.

int MaxThreadsInOneTask { get; set ; }

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.

// Default = 2300
int ScaleDownThreshold { get; set ; }

MinQuadrilateralAreaRatio

The minimum ratio between the target document area and the total image area. Only those exceeding this value will be outputted (measured in percentages).

// If ExpectedDocumentsCount is 1 && documentType is Document, the range is from 20 to 100.
// Otherwise, 0 to 100
int MinQuadrilateralAreaRatio { get; set; }

ExpectedDocumentsCount

The number of documents expected to be detected.

// ExpectedDocumentsCount >0
int ExpectedDocumentsCount { get; set; }