Table of contents

SimplifiedDocumentNormalizerSettings

The SimplifiedDocumentNormalizerSettings class contains settings for document normalization. It is a sub-parameter of SimplifiedCaptureVisionSettings

public class SimplifiedDocumentNormalizerSettings

Attributes Summary

Attribute Type
grayscaleTransformationModes int[]
grayscaleEnhancementModes int[]
colourMode int
pageSize int[]
brightness int
contrast int
maxThreadsInOneTask int
scaleDownThreshold int
minQuadrilateralAreaRatio int
expectedDocumentsCount int

grayscaleTransformationModes

Specifies how grayscale transformations should be applied, including whether to process inverted grayscale images and the specific transformation mode to use.

It is an array of 8 integers, where each integer represents a mode specified by the EnumGrayscaleTransformationMode enumeration.

View the parameter reference page of GrayscaleTransformationModes for more detail about grayscale transformation modes.

grayscaleEnhancementModes

Specifies how to enhance the quality of the grayscale image.

It is an array of 8 integers, where each integer represents a mode specified by the EnumGrayscaleEnhancementMode enumeration.

View the parameter reference page of GrayscaleEnhancementModes for more detail about grayscale enhancement modes.

colourMode

Specifies the colour mode of the output image.

It is a value of the EnumImageColourMode enumeration.

View the parameter reference page of ColourMode for more detail about colour mode.

Default value

0, which means output image in colour mode.

pageSize

Specifies the page size (width by height in pixels) of the normalized image.

brightness

Specifies the brightness of the normalized image.

Value Range

[-100,100]

Default value

0

contrast

Specifies the contrast of the normalized image.

Value Range

[-100,100]

Default value

0

maxThreadsInOneTask

Specifies the maximum available threads count in one document normalization task.

Value Range

[1, 256]

Default value

4

scaleDownThreshold

Specifies the threshold for the image shrinking.

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

Specifies the minimum ratio between the target quadrilateral area and the total image area. Only those exceeding this value will be output (measured in percentages).

Value Range

[0, 100]

Default Value

0, which means no limitation.

expectedDocumentsCount

Specifies the number of documents expected to be detected.

Value Range

[0, 0x7fffffff]

Default Value

1.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: