Resource Base
Table of contents

SimplifiedDocumentNormalizerSettings

This interface defines simplified settings for document normalizer tasks.

Definition

interface SimplifiedDocumentNormalizerSettings {
    grayscaleEnhancementModes: Array<Core.EnumGrayscaleEnhancementMode>;
    grayscaleTransformationModes: Array<Core.EnumGrayscaleTransformationMode>;
    colourMode: EnumImageColourMode;
    pageSize: [number, number];
    brightness: number;
    contrast: number;
    scaleDownThreshold: number;
}

grayscaleEnhancementModes

Set the grayscale enhancement modes with an array of enumeration GrayscaleEnhancementMode. View the reference page of GrayscaleEnhancementModes for more detail about grayscale enhancement modes.

grayscaleEnhancementModes: Array<Core.EnumGrayscaleEnhancementMode>; 

See also

grayscaleTransformationModes

Set the grayscale transformation modes with an array of enumeration GrayscaleTransformationMode. View the reference page of GrayscaleTransformationModes for more detail about grayscale transformation modes.

grayscaleTransformationModes: Array<Core.EnumGrayscaleTransformationMode>;

See also

colourMode

Sets the colour mode of the normalized image with enumeration ImageColourMode. View the reference page of ImageColourMode for more detail about colour mode.

colourMode: EnumImageColourMode;

See also

pageSize

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

pageSize: [number, number];

brightness

Sets the brightness of the normalized image. The value range is [-100,100].

brightness: number;

contrast

Sets the contrast of the normalized image. The value range is [-100,100].

contrast: number;

scaleDownThreshold

Set the threshold for scaling down the input image during document detection. If the shorter edge size of the image is larger than this threshold,the original may be scaled down to reduce processing time. The default value is 2300.

scaleDownThreshold: number;

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version(2.2.10)
    • Version 2.x
      • Version 2.0.21
      • Version 2.0.20
      • Version 2.0.11
    • Version 1.x
      • Version 1.0.12
      • Version 1.0.11
      • Version 1.0.10
      • Version 1.0.0
    Change +
    © 2003–2024 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support