Skip to content

Commit 45970e4

Browse files
Merge pull request #43 from dynamsoft-docs/preview
update to internal commit f33aed92
2 parents e9648db + 4a6a10c commit 45970e4

27 files changed

+103
-111
lines changed

programming/android/api-reference/detected-quad-element.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ class DetectedQuadElement extends RegionObjectElement
2626

2727
| Methods | Description |
2828
| ------- | ----------- |
29-
| [`getConfidenceAsDocumentBoundary`](#getconfidenceasdocumentboundary) | Get the confidence of the quadrilateral to be a document boundary. |
29+
| [`getConfidenceAsDocumentBoundary`](#getconfidenceasdocumentboundary) | Returns the confidence score of the detected quadrilateral's boundary, measuring the certainty that the detected quadrilateral represents the boundary of a document. |
3030

3131
## getConfidenceAsDocumentBoundary
3232

33-
Get the confidence of the quadrilateral to be a document boundary.
33+
Returns the confidence score of the detected quadrilateral's boundary, measuring the certainty that the detected quadrilateral represents the boundary of a document.
3434

3535
```java
3636
int getConfidenceAsDocumentBoundary();

programming/android/api-reference/detected-quad-result-item.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ noTitleIndex: true
1010

1111
# DetectedQuadResultItem
1212

13-
The `DetectedQuadResultItem` class represents a captured result item whose type is detected quad, which contains the location and confidence as a document boundary.
13+
The `DetectedQuadResultItem` class is an extension of the [`CapturedResultItem`]({{ site.dcv_android_api }}core/basic-structures/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.
1414

1515
## Definition
1616

@@ -27,11 +27,11 @@ class DetectedQuadResultItem extends CapturedResultItem
2727
| Methods | Description |
2828
| ------- | ----------- |
2929
| [`getLocation`](#getlocation) | Get a Quadrilateral object as the location of current object. |
30-
| [`getConfidenceAsDocumentBoundary`](#getconfidenceasdocumentboundary) | Get the confidence of current object as a document boundary. |
30+
| [`getConfidenceAsDocumentBoundary`](#getconfidenceasdocumentboundary) | Returns the confidence score of the detected quadrilateral's boundary, measuring the certainty that the detected quadrilateral represents the boundary of a document. |
3131

3232
### getLocation
3333

34-
Get a Quadrilateral object as the location of current object.
34+
Returns a [Quadrilateral]({{ site.dcv_android_api }}core/basic-structures/quadrilateral.html) object that represents the location of the detected quadrilateral within the image or frame.
3535

3636
```java
3737
Quadrilateral getLocation();
@@ -43,7 +43,7 @@ The location of current object.
4343

4444
### getConfidenceAsDocumentBoundary
4545

46-
Get the confidence of current object as a document boundary.
46+
Returns the confidence score of the detected quadrilateral's boundary, measuring the certainty that the detected quadrilateral represents the boundary of a document.
4747

4848
```java
4949
int getConfidenceAsDocumentBoundary();

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

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ noTitleIndex: true
1010

1111
# DetectedQuadsResult
1212

13-
The `DetectedQuadsResult` class represents a captured result whose type is detected quads, which contains an array of `DetectedQuadResultItem` and the rotation transformation matrix of the original image relative to the rotated image.
13+
The `DetectedQuadsResult` class represents a collection of [`DetectedQuadResultItems`](detected-quad-result-item.md), the basic unit of a detected quad result.
1414

1515
## Definition
1616

@@ -33,7 +33,7 @@ class DetectedQuadsResult
3333

3434
### getItems
3535

36-
An array of [`DetectedQuadResultItem`](./detected-quad-result-item.md), which are the detected quadrilateral items.
36+
Returns an array of [`DetectedQuadResultItem`](./detected-quad-result-item.md), which represents the basic unit of the captured result, in this case, a detected quadrilateral.
3737

3838
```java
3939
DetectedQuadResultItem[] getItems();
@@ -45,7 +45,7 @@ The array of the detected quadrilateral items.
4545

4646
### getRotationTransformMatrix
4747

48-
The rotation transformation matrix of the original image relative to the rotated image.
48+
Returns the rotation transformation matrix of the original image relative to the rotated image. Please see [Matrix](https://developer.android.com/reference/android/opengl/Matrix){:target="_blank"} for more info.
4949

5050
```java
5151
Matrix getRotationTransformMatrix();
@@ -57,19 +57,15 @@ The rotation transformation matrix of the original image relative to the rotated
5757

5858
### getOriginalImageHashId
5959

60-
The hash id of the original image. You can use this ID to get the original image via `IntermediateResultManager` class.
60+
Returns the hash ID of the original image. You can use this ID to get the original image via [`IntermediateResultManager`]({{ site.dcv_android_api }}core/intermediate-results/intermediate-result-manager.html) class.
6161

6262
```java
6363
String getOriginalImageHashId();
6464
```
6565

66-
**Return Value**
67-
68-
The hash id of the original image.
69-
7066
### getOriginalImageTag
7167

72-
The tag of the original image.
68+
Returns the [`ImageTag`]({{ site.dcv_android_api }}core/basic-structures/image-tag.html) of the original image, which contains various information about the image.
7369

7470
```java
7571
ImageTag getOriginalImageTag();

programming/android/api-reference/normalized-image-result-item.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ noTitleIndex: true
1010

1111
# NormalizedImageResultItem
1212

13-
The `NormalizedImageResultItem` class represents a captured result item whose type is a normalized image. It stores the normalized image information.
13+
The `NormalizedImageResultItem` class is an extension of [`CapturedResultItem`]({{ site.dcv_android_api }}core/basic-structures/captured-result-item.html) that represents a normalized image. This is the most basic unit of the normalized image result, one of the captured result types that the Capture Vision Router can output.
1414

1515
## Definition
1616

@@ -31,7 +31,7 @@ class NormalizedImageResultItem extends CapturedResultItem
3131

3232
### getImageData
3333

34-
Gets an `ImageData` object as the normalized image.
34+
Returns an [`ImageData`]({{ site.dcv_android_api }}core/basic-structures/image-data.html) object for the normalized image.
3535

3636
```java
3737
ImageData getImageData();
@@ -43,7 +43,7 @@ The `ImageData` object as the normalized image.
4343

4444
### getLocation
4545

46-
Gets the quadrilateral from which you get the normalized image result item.
46+
Returns the [Quadrilateral]({{ site.dcv_android_api }}core/basic-structures/quadrilateral.html) that represents the location of the normalized image within the original image or frame.
4747

4848
```java
4949
Quadrilateral getLocation();

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

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ noTitleIndex: true
1010

1111
# NormalizedImagesResult
1212

13-
The `NormalizedImagesResult` class represents a collection of captured result items whose type are normalized images.
13+
The `NormalizedImagesResult` class represents a collection of [`NormalizedImageResultItem`](normalized-image-result-item.md), the basic unit of a normalized image result.
1414

1515
## Definition
1616

@@ -33,7 +33,7 @@ class NormalizedImagesResult
3333

3434
### getItems
3535

36-
Gets an array of `NormalizedImageResultItem` objects, where each object represents a single normalized image.
36+
Returns an array of [`NormalizedImageResultItem`](normalized-image-result-item.md) objects, where each `NormalizedImageResultItem` represents a single normalized image.
3737

3838
```java
3939
NormalizedImageResultItem[] getItems();
@@ -45,7 +45,7 @@ The array of the normalized image result items.
4545

4646
### getRotationTransformMatrix
4747

48-
Gets the rotation transformation matrix of the original image relative to the rotated image.
48+
Returns the rotation transformation matrix of the original image relative to the rotated image. Please see [Matrix](https://developer.android.com/reference/android/opengl/Matrix){:target="_blank"} for more info.
4949

5050
```java
5151
Matrix getRotationTransformMatrix();
@@ -57,7 +57,7 @@ The rotation transformation matrix of the original image relative to the rotated
5757

5858
### getOriginalImageHashId
5959

60-
Gets the hash id of the original image. You can use this ID to get the original image via `IntermediateResultManager` class.
60+
Returns the hash ID of the original image. You can use this ID to get the original image via [`IntermediateResultManager`]({{ site.dcv_android_api }}core/intermediate-results/intermediate-result-manager.html) class.
6161

6262
```java
6363
String getOriginalImageHashId();
@@ -69,7 +69,7 @@ The hash id of the original image.
6969

7070
### getOriginalImageTag
7171

72-
Gets the tag of the original image.
72+
Returns the [`ImageTag`]({{ site.dcv_android_api }}core/basic-structures/image-tag.html) of the original image, which contains various information about the image.
7373

7474
```java
7575
ImageTag getOriginalImageTag();
@@ -78,7 +78,3 @@ ImageTag getOriginalImageTag();
7878
**Return Value**
7979

8080
The tag of the original image.
81-
82-
**See Also**
83-
84-
* [ImageTag]({{ site.dcv_android_api }}core/basic-structures/image-tag.html)

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ noTitleIndex: true
1010

1111
# SimplifiedDocumentNormalizerSettings
1212

13-
The `SimplifiedDocumentNormalizerSettings` class represents the simplified document normalizer settings.
13+
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.
1414

1515
## Definition
1616

@@ -37,63 +37,63 @@ class SimplifiedDocumentNormalizerSettings
3737

3838
### grayscaleTransformationModes
3939

40-
Defines the grayscale transformation mode with an array of [`EnumGrayscaleTransformationMode`]({{ site.dcv_enumerations }}core/grayscale-transformation-mode.html?lang=android). It controls whether to detect the inverted document boundary.
40+
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.
4141

4242
```java
4343
EnumGrayscaleTransformationMode[] grayscaleTransformationModes;
4444
```
4545

4646
### grayscaleEnhancementModes
4747

48-
Defines the grayscale enhancement mode with an array of [`EnumGrayscaleEnhancementModes`]({{ site.dcv_enumerations }}core/grayscale-enhancement-modes.html?lang=android).
48+
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.
4949

5050
```java
5151
EnumGrayscaleEnhancementMode[] grayscaleEnhancementModes;
5252
```
5353

5454
### colourMode
5555

56-
Defines the colour mode of the normalized image with an [`EnumImageColourMode`]({{ site.dcv_enumerations }}core/image-colour-mode.html?lang=android) member.
56+
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.
5757

5858
```java
5959
EnumImageColourMode colourMode;
6060
```
6161

6262
### pageSize
6363

64-
Defines the page size of the normalized image with the width and height in an int array.
64+
Defines the page size of the normalized image through an integer array.
6565

6666
```java
6767
int[] pageSize;
6868
```
6969

7070
### brightness
7171

72-
Defines the brightness of the normalized image with an integer.
72+
Defines the brightness of the normalized image result with an integer.
7373

7474
```java
7575
int brightness;
7676
```
7777

7878
### contrast
7979

80-
Defines the contrast of the normalized image with an integer.
80+
Defines the contrast of the normalized image result with an integer.
8181

8282
```java
8383
int contrast;
8484
```
8585

8686
### maxThreadsInOneTask
8787

88-
Defines the maximum number of threads in one task.
88+
Defines the maximum number of threads dedicated to a single task.
8989

9090
```java
9191
int maxThreadsInOneTask;
9292
```
9393

9494
### scaleDownThreshold
9595

96-
Defines the scale down threshold. If the image size is larger than the scale down threshold, the image is scaled down by half.
96+
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.
9797

9898
```java
9999
int scaleDownThreshold;

programming/android/upgrade-instruction.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ permalink: /programming/android/upgrade-instruction.html
1111

1212
## From version 1.x to 2.x
1313

14-
`DynamsoftDocumentNormalizer` SDK has been revamped to integrate with `DynamsoftCaptureVision (DCV)` architecture. To upgrade from version 1.x to 2.x, we recommend you to follow the [`User Guide`](user-guide.md) and re-write your codes.
14+
`DynamsoftDocumentNormalizer` SDK has been revamped to integrate with `DynamsoftCaptureVision (DCV)` architecture. To upgrade from version 1.x to 2.x, we recommend that you follow the [`User Guide`](user-guide.md) and re-write your code to match what is in the guide.
1515

1616
Here are some of the main actions you may take:
1717

1818
### Update the Dependencies
1919

20-
Since the SDK architecture is changed, you have to change your `build.gradle` for including the following libraries:
20+
Since the SDK architecture has changed, you have to change your `build.gradle` to include the following libraries:
2121

2222
```groovy
2323
dependencies {
@@ -31,11 +31,11 @@ dependencies {
3131
}
3232
```
3333

34-
>Note: Please view [user guide](user-guide.md#add-the-library-via-maven) for the correct version number.
34+
>Note: Please view [user guide](user-guide.md#add-the-library-via-maven) for the most up-to-date version number.
3535
3636
### Migrate from Class DocumentNormalizer to Class CaptureVisionRouter
3737

38-
The `CaptureVisionRouter` class serves as the central class of the DCV framework's execution flow. It encompasses the following functionalities:
38+
The `CaptureVisionRouter` class serves as the central class of DCV's execution flow. It encompasses the following functionalities:
3939

4040
- Retrieving images from the `ImageSourceAdapter`.
4141
- Updating templates and configuring settings.
@@ -44,13 +44,13 @@ The `CaptureVisionRouter` class serves as the central class of the DCV framework
4444

4545
### Convert Parameter Templates
4646

47-
The parameter system is restructured and the template you used for v1.x can't be directly recognized by the new version. Please <a href="https://www.dynamsoft.com/company/customer-service/#contact" target="_blank">contact us</a> to upgrade your parameter template.
47+
The parameter system has been restructured and the template you used for v1.x cannot be directly recognized by v2.x (and beyond). Please <a href="https://www.dynamsoft.com/company/customer-service/#contact" target="_blank">contact us</a> to upgrade your parameter template.
4848

4949
### Update Your Codes
5050

5151
#### Single Image Processing
5252

53-
You should now utilize the provided `capture` APIs instead of the previous `detectQuad` and `normalize` APIs. These `capture` APIs directly return results for boundary detection or document normalization.
53+
You should now utilize the provided `capture` API methods instead of the previous `detectQuad` and `normalize` API methods. These `capture` API methods directly return results for boundary detection or document normalization.
5454

5555
```java
5656
CapturedResult capture(String filePath, String templateName) throws CaptureVisionRouterException
@@ -61,12 +61,12 @@ CapturedResult capture(ImageData imageData, String templateName) throws CaptureV
6161

6262
#### Batch Image Processing
6363

64-
The DCV architecture allows you to conveniently and continuously obtain frames from `CameraEnhancer`, and detect or normalize them. The key steps are as follows:
64+
The DCV architecture allows you to conveniently and continuously obtain frames from the `CameraEnhancer`, and then detect or normalize them. The key steps are as follows:
6565

66-
- Set a `CameraEnhancer` object as the input of the `CaptureVisionRouter` object via `setInput` API.
67-
- Register a `CapturedResultReceiver` object as the output of the `CaptureVisionRouter` object via `addResultReceiver` API.
68-
- Open/Close camera via `CameraEnhancer.open` and `CameraEnhancer.close` API.
69-
- Start/Stop capturing via `CaptureVisionRouter.startCapturing` and `CaptureVisionRouter.stopCapturing` API.
66+
- Set a `CameraEnhancer` object as the input of the `CaptureVisionRouter` object via the `setInput` API method.
67+
- Register a `CapturedResultReceiver` object as the output of the `CaptureVisionRouter` object via the `addResultReceiver` API method.
68+
- Open/Close camera via `CameraEnhancer.open` and `CameraEnhancer.close` API methods.
69+
- Start/Stop capturing via `CaptureVisionRouter.startCapturing` and `CaptureVisionRouter.stopCapturing` API methods.
7070

7171
```java
7272
public class MainActivity extends AppCompatActivity {

programming/ios/api-reference/candidate-quad-edges-unit-v2.0.20.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The `DSCandidateQuadEdgesUnit` class represents an intermediate result unit whos
1414

1515
## Definition
1616

17-
*Assembly:* DynamsoftDocumentNormalizer.framework
17+
*Assembly:* DynamsoftDocumentNormalizer.xcframework
1818

1919
<div class="sample-code-prefix"></div>
2020
>- Objective-C

programming/ios/api-reference/candidate-quad-edges-unit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The `DSCandidateQuadEdgesUnit` class represents an intermediate result unit whos
1414

1515
## Definition
1616

17-
*Assembly:* DynamsoftDocumentNormalizer.framework
17+
*Assembly:* DynamsoftDocumentNormalizer.xcframework
1818

1919
<div class="sample-code-prefix"></div>
2020
>- Objective-C

programming/ios/api-reference/corners-unit-v2.0.20.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The `DSCornersUnit` class represents an intermediate result unit whose type is c
1414

1515
## Definition
1616

17-
*Assembly:* DynamsoftDocumentNormalizer.framework
17+
*Assembly:* DynamsoftDocumentNormalizer.xcframework
1818

1919
<div class="sample-code-prefix"></div>
2020
>- Objective-C

0 commit comments

Comments
 (0)