Table of contents

SimplifiedDocumentNormalizerSettings

Interface SimplifiedDocumentNormalizerSettings represents a series of simple settings related to the document scanning.

Definition

Assembly: dynamsoft-capture-vision-react-native

interface SimplifiedDocumentNormalizerSettings

Properties

Property Types Description
grayscaleTransformationModes Array<EnumGrayscaleTransformationMode> An array of GrayscaleTransformationMode. It controls whether to detect the inverted document boundary.
grayscaleEnhancementModes Array<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.

grayscaleTransformationModes?: Int32Array | Array<EnumGrayscaleTransformationMode>

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.

grayscaleEnhancementModes?: Int32Array | Array<EnumGrayscaleEnhancementMode>

colourMode

Defines the colour mode of the normalized image with an EnumImageColourMode member. By default, the normalized image will output in colour.

colourMode?: number | EnumImageColourMode

pageSize

The page size of the normalized image.

pageSize?: [number, number]

brightness

The brightness of the normalized image result.

brightness?: number

Range

[-100, 100]

contrast

The contrast of the normalized image result.

contrast?: number

Range

[-100,100]

maxThreadsInOneTask

The maximum number of threads dedicated to a single task.

maxThreadsInOneTask?: number

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.

scaleDownThreshold?: number

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).

minQuadrilateralAreaRatio?: number

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.

expectedDocumentsCount?: number

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: