-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from dynamsoft-docs/preview
update to internal commit b3118d6c
- Loading branch information
Showing
8 changed files
with
614 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 100 additions & 0 deletions
100
...amming/android/api-reference/simplified-document-normalizer-settings-v2.2.10.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
--- | ||
layout: default-layout | ||
title: SimplifiedDocumentNormalizerSettings - Dynamsoft Document Normalizer module Android Edition API Reference | ||
description: The class SimplifiedDocumentNormalizerSettings of Dynamsoft Document Normalizer module Android edition represents the simplified document normalizer settings. | ||
keywords: document normalizer settings, Android, java | ||
needGenerateH3Content: true | ||
needAutoGenerateSidebar: true | ||
noTitleIndex: true | ||
--- | ||
|
||
# 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]({{ site.parameters }}reference/index.html){:target="_blank"} page. | ||
|
||
## Definition | ||
|
||
*Namespace:* com.dynamsoft.ddn | ||
|
||
*Assembly:* DynamsoftDocumentNormalizer.aar | ||
|
||
```java | ||
class SimplifiedDocumentNormalizerSettings | ||
``` | ||
|
||
## Attributes | ||
|
||
| Attributes | Type | Description | | ||
| ---------- | ---- | ----------- | | ||
| [`grayscaleTransformationModes`](#grayscaletransformationmodes) | *EnumGrayscaleTransformationMode[]* | An array of GrayscaleTransformationMode. It controls whether to detect the inverted document boundary. | | ||
| [`grayscaleEnhancementModes`](#grayscaleenhancementmodes) | *EnumGrayscaleEnhancementModes[]* | An array of GrayscaleEnhancementModes. | | ||
| [`colourMode`](#colourmode) | *EnumImageColourMode* | The grayscale transformation mode. It controls whether to decode the inverted text. | | ||
| [`pageSize`](#pagesize) | *int[]* | The page size. | | ||
| [`brightness`](#brightness) | *int* | The brightness. | | ||
| [`contrast`](#contrast) | *int* | The contrast. | | ||
| [`maxThreadsInOneTask`](#maxthreadsinonetask) | *int* | The maximum number of threads in one task. | | ||
| [`scaleDownThreshold`](#scaledownthreshold) | *int* | The scale down threshold. | | ||
|
||
### grayscaleTransformationModes | ||
|
||
Defines the grayscale transformation modes with an array of [`EnumGrayscaleTransformationMode`]({{ site.dcv_enumerations }}core/grayscale-transformation-mode.html?lang=android) items. This parameter is important when working with inverted documents, and must be used in order to locate the inverted document boundary. | ||
|
||
```java | ||
EnumGrayscaleTransformationMode[] grayscaleTransformationModes; | ||
``` | ||
|
||
### grayscaleEnhancementModes | ||
|
||
Defines the grayscale enhancement modes with an array of [`EnumGrayscaleEnhancementModes`]({{ site.dcv_enumerations }}core/grayscale-enhancement-modes.html?lang=android) 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]({{ site.dcv_parameters }}reference/image-parameter/grayscale-enhancement-modes.html) parameter page. | ||
|
||
```java | ||
EnumGrayscaleEnhancementMode[] grayscaleEnhancementModes; | ||
``` | ||
|
||
### colourMode | ||
|
||
Defines the colour mode of the normalized image with an [`EnumImageColourMode`]({{ site.dcv_enumerations }}document-normalizer/image-colour-mode.html?lang=android) 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. | ||
|
||
```java | ||
EnumImageColourMode colourMode; | ||
``` | ||
|
||
### pageSize | ||
|
||
Defines the page size of the normalized image through an integer array. | ||
|
||
```java | ||
int[] pageSize; | ||
``` | ||
|
||
### brightness | ||
|
||
Defines the brightness of the normalized image result with an integer. | ||
|
||
```java | ||
int brightness; | ||
``` | ||
|
||
### contrast | ||
|
||
Defines the contrast of the normalized image result with an integer. | ||
|
||
```java | ||
int contrast; | ||
``` | ||
|
||
### maxThreadsInOneTask | ||
|
||
Defines the maximum number of threads dedicated to a single task. | ||
|
||
```java | ||
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. | ||
|
||
```java | ||
int scaleDownThreshold; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.