Resource Base
Table of contents

SimplifiedDocumentNormalizerSettings

The SimplifiedDocumentNormalizerSettings class represents a series of simple settings related to the Document Normalizer. Please note that this is not the full list of settings that can be utilized by the Document Normalizer, which you can find on the Dynamsoft Document Normalizer Parameters page.

Definition

Namespace: com.dynamsoft.ddn

Assembly: DynamsoftDocumentNormalizer.aar

class SimplifiedDocumentNormalizerSettings

Methods & Attributes

Attributes Type Description
grayscaleTransformationModes EnumGrayscaleTransformationMode[] An array of GrayscaleTransformationMode. It controls whether to detect the inverted document boundary.
grayscaleEnhancementModes EnumGrayscaleEnhancementModes[] An array of GrayscaleEnhancementModes.
colourMode EnumImageColourMode The grayscale transformation mode. It controls whether to decode the inverted text.
pageSize int[] 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.
Methods Description
toJson Generate a JSON string from this SimplifiedDocumentNormalizerSettings object.
fromJson Create a SimplifiedDocumentNormalizerSettings object from a JSON string.

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.

EnumGrayscaleTransformationMode[] grayscaleTransformationModes;

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.

EnumGrayscaleEnhancementMode[] grayscaleEnhancementModes;

colourMode

Defines the colour mode of the normalized image with an EnumImageColourMode member. By default, the normalized image will output in colour. In order to make the result image grayscale or binary, setting the colourMode to the corresponding pixel type will do the trick.

EnumImageColourMode colourMode;

pageSize

Defines the page size of the normalized image through an integer array.

int[] pageSize;

brightness

Defines the brightness of the normalized image result with an integer.

int brightness;

contrast

Defines the contrast of the normalized image result with an integer.

int contrast;

maxThreadsInOneTask

Defines the maximum number of threads dedicated to a single task.

int maxThreadsInOneTask;

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.

int scaleDownThreshold;

toJson

Generate a JSON string from this SimplifiedDocumentNormalizerSettings object.

String toJson()

Return Value

A JSON string that contains all the information of this object.

fromJson

Create a SimplifiedDocumentNormalizerSettings object from a JSON string.

static SimplifiedDocumentNormalizerSettings fromJson(String json);

Parameters

  • json: A JSON string that contains all SimplifiedDocumentNormalizerSettings required information.

Return Value

A SimplifiedDocumentNormalizerSettings object.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version
  • Version 2.x
    • Version 2.2.10
    • Version 2.0.20
    • Version 2.0.10
    • Version 2.0.10
  • Version 1.x
    • Version 1.0.30
    • Version 1.0.21
    • Version 1.0.20
    • Version 1.0.12
    • Version 1.0.11
    • Version 1.0.10
    • Version 1.0.0
    • Version 1.0.30
    • Version 1.0.21
    • Version 1.0.20
    • Version 1.0.12
    • Version 1.0.11
    • Version 1.0.10
    • Version 1.0.0
    • Version 1.0.5
    • Version 1.0.4
    • Version 1.0.3
    • Version 1.0.2
    • Version 1.0.1
    • Version 1.0.0
Change +
© 2003–2024 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support