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;
minQuadrilateralAreaRatio: number;
expectedDocumentsCount: 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;
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;
expectedDocumentsCount
The number of documents expected to be detected.
expectedDocumentsCount: number;