This interface defines simplified settings for document normalizer tasks.

interface SimplifiedDocumentNormalizerSettings {
    brightness?: number;
    colourMode?: number;
    contrast?: number;
    grayscaleEnhancementModes?: Int32Array | EnumGrayscaleEnhancementMode[];
    grayscaleTransformationModes?:
        | Int32Array
        | EnumGrayscaleTransformationMode[];
    maxThreadsInOneTask?: number;
    pageSize?: [number, number];
    scaleDownThreshold?: number;
}

Properties

brightness?: number

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

colourMode?: number

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

contrast?: number

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

grayscaleEnhancementModes?: Int32Array | EnumGrayscaleEnhancementMode[]

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

grayscaleTransformationModes?: Int32Array | EnumGrayscaleTransformationMode[]

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

maxThreadsInOneTask?: number
pageSize?: [number, number]

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

scaleDownThreshold?: number

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.