Skip to content

Commit 8a29e48

Browse files
Merge pull request #57 from dynamsoft-docs/preview
update to internal commit d5ac1c98
2 parents 995b76e + c92e00a commit 8a29e48

12 files changed

+895
-6
lines changed

programming/android/api-reference/detected-quads-result.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ class DetectedQuadsResult
3030
| [`getRotationTransformMatrix`](#getrotationtransformmatrix) | The rotation transformation matrix of the original image relative to the rotated image. |
3131
| [`getOriginalImageHashId`](#getoriginalimagehashid) | The hash id of the original image. You can use this ID to get the original image via `IntermediateResultManager` class. |
3232
| [`getOriginalImageTag`](#getoriginalimagetag) | The tag of the original image, from which you get the detected quads result. |
33+
| [`getErrorCode`](#geterrorcode) | Gets the error code of the detected quads result, if an error occurred. |
34+
| [`getErrorMessage`](#geterrormessage) | Gets the error message of the detected quads result, if an error occurred. |
3335

3436
### getItems
3537

@@ -78,3 +80,27 @@ The tag of the original image.
7880
**See Also**
7981

8082
* [ImageTag]({{ site.dcv_android_api }}core/basic-structures/image-tag.html)
83+
84+
### getErrorCode
85+
86+
Gets the error code of the detected quads result, if an error occurred.
87+
88+
```java
89+
int getErrorCode();
90+
```
91+
92+
**Return value**
93+
94+
Returns the error code of the detected quads result, or 0 if no error occurred.
95+
96+
### getErrorMessage
97+
98+
Gets the error message of the detected quads result, if an error occurred.
99+
100+
```java
101+
String getErrorMessage();
102+
```
103+
104+
**Return value**
105+
106+
Returns a string that describes the error message.

programming/android/api-reference/normalized-images-result.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ class NormalizedImagesResult
3030
| [`getRotationTransformMatrix`](#getrotationtransformmatrix) | Gets the rotation transformation matrix of the original image relative to the rotated image. |
3131
| [`getOriginalImageHashId`](#getoriginalimagehashid) | Gets the hash id of the original image. You can use this ID to get the original image via IntermediateResultManager class. |
3232
| [`getOriginalImageTag`](#getoriginalimagetag) | Gets the tag of the original image. |
33+
| [`getErrorCode`](#geterrorcode) | Gets the error code of the normalized images result, if an error occurred. |
34+
| [`getErrorMessage`](#geterrormessage) | Gets the error message of the normalized images result, if an error occurred. |
3335

3436
### getItems
3537

@@ -78,3 +80,27 @@ ImageTag getOriginalImageTag();
7880
**Return Value**
7981

8082
The tag of the original image.
83+
84+
### getErrorCode
85+
86+
Gets the error code of the normalized images result, if an error occurred.
87+
88+
```java
89+
int getErrorCode();
90+
```
91+
92+
**Return value**
93+
94+
Returns the error code of the normalized images result, or 0 if no error occurred.
95+
96+
### getErrorMessage
97+
98+
Gets the error message of the normalized images result, if an error occurred.
99+
100+
```java
101+
String getErrorMessage();
102+
```
103+
104+
**Return value**
105+
106+
Returns a string that describes the error message.

programming/android/api-reference/simplified-document-normalizer-settings.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ class SimplifiedDocumentNormalizerSettings
2626

2727
| Attributes | Type | Description |
2828
| ---------- | ---- | ----------- |
29-
| [`grayscaleTransformationModes`](#grayscaletransformationmodes) | *EnumGrayscaleTransformationMode[]* | An array of GrayscaleTransformationMode. It controls whether to detect the inverted document boundary. |
30-
| [`grayscaleEnhancementModes`](#grayscaleenhancementmodes) | *EnumGrayscaleEnhancementModes[]* | An array of GrayscaleEnhancementModes. |
31-
| [`colourMode`](#colourmode) | *EnumImageColourMode* | The grayscale transformation mode. It controls whether to decode the inverted text. |
29+
| [`grayscaleTransformationModes`](#grayscaletransformationmodes) | *int[]* | An array of GrayscaleTransformationMode. It controls whether to detect the inverted document boundary. |
30+
| [`grayscaleEnhancementModes`](#grayscaleenhancementmodes) | *int[]* | An array of GrayscaleEnhancementModes. |
31+
| [`colourMode`](#colourmode) | *int* | The grayscale transformation mode. It controls whether to decode the inverted text. |
3232
| [`pageSize`](#pagesize) | *int[]* | The page size. |
3333
| [`brightness`](#brightness) | *int* | The brightness. |
3434
| [`contrast`](#contrast) | *int* | The contrast. |
@@ -46,23 +46,26 @@ class SimplifiedDocumentNormalizerSettings
4646
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.
4747

4848
```java
49-
EnumGrayscaleTransformationMode[] grayscaleTransformationModes;
49+
@EnumGrayscaleTransformationMode
50+
int[] grayscaleTransformationModes;
5051
```
5152

5253
### grayscaleEnhancementModes
5354

5455
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.
5556

5657
```java
57-
EnumGrayscaleEnhancementMode[] grayscaleEnhancementModes;
58+
@EnumGrayscaleEnhancementMode
59+
int[] grayscaleEnhancementModes;
5860
```
5961

6062
### colourMode
6163

6264
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.
6365

6466
```java
65-
EnumImageColourMode colourMode;
67+
@EnumImageColourMode
68+
int colourMode;
6669
```
6770

6871
### pageSize
@@ -78,6 +81,7 @@ int[] pageSize;
7881
Defines the brightness of the normalized image result with an integer.
7982

8083
```java
84+
@IntRange(from = -100, to = 100)
8185
int brightness;
8286
```
8387

@@ -86,6 +90,7 @@ int brightness;
8690
Defines the contrast of the normalized image result with an integer.
8791

8892
```java
93+
@IntRange(from = 512)
8994
int contrast;
9095
```
9196

@@ -110,6 +115,8 @@ int scaleDownThreshold;
110115
The minimum ratio between the target document area and the total image area. Only those exceeding this value will be outputted (measured in percentages).
111116

112117
```java
118+
@IntRange(from = 0, to = 100)
119+
// If expectedDocumentsCount is 1 && documentType is Document, the range is from 20 to 100.
113120
int minQuadrilateralAreaRatio;
114121
```
115122

@@ -118,6 +125,7 @@ int minQuadrilateralAreaRatio;
118125
The number of documents expected to be detected.
119126

120127
```java
128+
@IntRange(from = 0)
121129
int expectedDocumentsCount;
122130
```
123131

5.02 KB
Loading
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
layout: default-layout
3+
title: DetectedQuadResultItem - Dynamsoft Capture Vision MAUI SDK API Reference
4+
description: The class DetectedQuadResultItem of DCV MAUI represents a captured result item whose type is detected quads, which contains the location and confidence as a document boundary.
5+
keywords: detected quads, MAUI
6+
needGenerateH3Content: true
7+
needAutoGenerateSidebar: true
8+
noTitleIndex: true
9+
---
10+
11+
# DetectedQuadResultItem
12+
13+
The `DetectedQuadResultItem` class is an extension of the [`CapturedResultItem`]({{ site.dcv_maui_api }}core/captured-result-item.html) that represents a detected quadrilateral. This is the most basic unit of a detected quadrilateral, one of the captured result types that the Capture Vision Router can output.
14+
15+
## Definition
16+
17+
*Namespace:* Dynamsoft.DocumentNormalizer.Maui
18+
19+
*Assembly:* Dynamsoft.DocumentNormalizer.Maui
20+
21+
```csharp
22+
class DetectedQuadResultItem : CapturedResultItem
23+
```
24+
25+
## Properties
26+
27+
| Property | Type | Description |
28+
| -------- | ---- | ----------- |
29+
| [`Location`](#location) | *Quadrilateral* | A Quadrilateral object as the location of current object. |
30+
| [`ConfidenceAsDocumentBoundary`](#confidenceasdocumentboundary) | *int* | The confidence score of the detected quadrilateral's boundary, measuring the certainty that the detected quadrilateral represents the boundary of a document. |
31+
32+
The following properties are inherited from [`CapturedResultItem`]({{ site.dcv_maui_api }}core/captured-result-item.html).
33+
34+
| Property | Type | Description |
35+
| -------- | ---- | ----------- |
36+
| [`Type`]({{ site.dcv_maui_api }}core/captured-result-item.html#type) | *[EnumCapturedResultItemType]({{ site.dcv_maui_api }}core/enum/captured-result-item-type.html)* | Get the type of the captured result item, indicating what kind of data it represents. |
37+
| [`TargetROIDefName`]({{ site.dcv_maui_api }}core/captured-result-item.html#targetroidefname) | *string* | Gets the name of the [`TargetROIDef`]({{ site.dcv_parameters_reference }}target-roi-def/) object which includes a task that generated the result. |
38+
| [`TaskName`]({{ site.dcv_maui_api }}core/captured-result-item.html#taskname) | *string* | The name of the task that generated the result. |
39+
40+
### Location
41+
42+
A [Quadrilateral]({{ site.dcv_maui_api }}core/quadrilateral.html) object that represents the location of the detected quadrilateral within the image or frame.
43+
44+
```csharp
45+
Quadrilateral Location { get; }
46+
```
47+
48+
### ConfidenceAsDocumentBoundary
49+
50+
The confidence score of the detected quadrilateral's boundary, measuring the certainty that the detected quadrilateral represents the boundary of a document.
51+
52+
```csharp
53+
int ConfidenceAsDocumentBoundary { get; }
54+
```
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
layout: default-layout
3+
title: DetectedQuadsResult - Dynamsoft Capture Vision MAUI SDK API Reference
4+
description: The class DetectedQuadsResult represents a captured result whose type is detected quads, which contains an array of DetectedQuadResultItems and the rotation transformation matrix of the original image relative to the rotated image.
5+
keywords: detected quads result, java, kotlin
6+
needGenerateH3Content: true
7+
needAutoGenerateSidebar: true
8+
noTitleIndex: true
9+
---
10+
11+
# DetectedQuadsResult
12+
13+
The `DetectedQuadsResult` class represents a collection of [`DetectedQuadResultItems`](detected-quad-result-item.md), the basic unit of a detected quad result.
14+
15+
## Definition
16+
17+
*Namespace:* Dynamsoft.DocumentNormalizer.Maui
18+
19+
*Assembly:* Dynamsoft.DocumentNormalizer.Maui
20+
21+
```csharp
22+
class DetectedQuadsResult
23+
```
24+
25+
## Properties
26+
27+
| Property | Type | Description |
28+
| -------- | ---- | ----------- |
29+
| [`Items`](#items) | *IList<DetectedQuadResultItem>* | An array of [`DetectedQuadResultItem`](./detected-quad-result-item.md), which are the detected quadrilateral items. |
30+
| [`RotationTransformMatrix`](#rotationtransformmatrix) | *Matrix* | The rotation transformation matrix of the original image relative to the rotated image. |
31+
| [`OriginalImageHashId`](#originalimagehashid) | *string* | The hash id of the original image. You can use this ID to get the original image via `IntermediateResultManager` class. |
32+
| [`ErrorCode`](#errorcode) | *int* | The error code of the detected quads result, if an error occurred. |
33+
| [`ErrorMessage`](#errormessage) | *String* | The error message of the detected quads result, if an error occurred. |
34+
35+
### Items
36+
37+
An array of [`DetectedQuadResultItem`](./detected-quad-result-item.md), which represents the basic unit of the captured result, in this case, a detected quadrilateral.
38+
39+
```csharp
40+
IList<DetectedQuadResultItem> Items { get; }
41+
```
42+
43+
### RotationTransformMatrix
44+
45+
The rotation transformation matrix of the original image relative to the rotated image. Please see [Matrix](https://developer.maui.com/reference/maui/opengl/Matrix){:target="_blank"} for more info.
46+
47+
```csharp
48+
Matrix RotationTransformMatrix { get; }
49+
```
50+
51+
### OriginalImageHashId
52+
53+
The hash ID of the original image. You can use this ID to get the original image via [`IntermediateResultManager`]({{ site.dcv_maui_api }}core/intermediate-results/intermediate-result-manager.html) class.
54+
55+
```csharp
56+
string OriginalImageHashId { get; }
57+
```
58+
59+
### ErrorCode
60+
61+
The error code of the detected quads result, if an error occurred.
62+
63+
```csharp
64+
int ErrorCode { get; }
65+
```
66+
67+
### ErrorMessage
68+
69+
The error message of the detected quads result, if an error occurred.
70+
71+
```csharp
72+
String ErrorMessage { get; }
73+
```
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
layout: default-layout
3+
title: DocumentNormalizerModule - Dynamsoft Capture Vision MAUI SDK API Reference
4+
description: The class DocumentNormalizerModule provides general functions for document normalization sdk.
5+
keywords: general functions, java, kotlin
6+
needGenerateH3Content: true
7+
needAutoGenerateSidebar: true
8+
noTitleIndex: true
9+
---
10+
11+
# DocumentNormalizerModule
12+
13+
The `DocumentNormalizerModule` class defines general functions of the document normalizer module.
14+
15+
## Definition
16+
17+
*Namespace:* Dynamsoft.DocumentNormalizer.Maui
18+
19+
*Assembly:* Dynamsoft.DocumentNormalizer.Maui
20+
21+
```csharp
22+
class DocumentNormalizerModule
23+
```
24+
25+
## Methods
26+
27+
| Method | Description |
28+
|------- |-------------|
29+
| [`GetVersion`](#getversion) | Gets the version of Dynamsoft Document Normalizer. |
30+
31+
### GetVersion
32+
33+
Gets the version of Dynamsoft Document Normalizer.
34+
35+
```csharp
36+
static string GetVersion();
37+
```
38+
39+
**Return Value**
40+
41+
The version of Dynamsoft Document Normalizer.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
layout: default-layout
3+
title: EnumImageColourMode - Dynamsoft Capture Vision MAUI
4+
description: Enumeration EnumImageColourMode of DCV MAUI Edition defines the colour mode of the normalized image.
5+
keywords: colour mode, binary, grayscale, colour
6+
needAutoGenerateSidebar: true
7+
needGenerateH3Content: true
8+
breadcrumbText: EnumImageColourMode
9+
---
10+
11+
# EnumImageColourMode
12+
13+
Enumeration `EnumImageColourMode` defines the colour mode of the normalized image.
14+
15+
## Definition
16+
17+
*Namespace:* Dynamsoft.DocumentNormalizer.Maui
18+
19+
*Assembly:* Dynamsoft.DocumentNormalizer.Maui
20+
21+
```csharp
22+
public enum EnumImageColourMode
23+
{
24+
ICM_Colour = 0,
25+
ICM_GRAYSCALE = 1,
26+
ICM_BINARY = 2
27+
}
28+
```

0 commit comments

Comments
 (0)