Skip to content

Commit 1a5b562

Browse files
Merge pull request #40 from dynamsoft-docs/preview
update to internal commit c334f93c
2 parents f22b86a + f19afab commit 1a5b562

13 files changed

+758
-7
lines changed

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ repositoryUrl: https://github.com/dynamsoft-docs/document-normalizer-docs-server
33
docFullPath: https://www.dynamsoft.com/document-normalizer/docs/server/
44
firstLevelUrl: /document-normalizer/docs/server
55
docHomePage: /document-normalizer/docs/core/introduction/
6+
needSearchIndex: true
7+
searchNeedFilter: true
68

79
ddn_c: /document-normalizer/docs/server/programming/c/
810
ddn_c_api: /document-normalizer/docs/server/programming/c/api-reference/
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
layout: default-layout
3+
title: CDeskewedImageElement Class
4+
description: This page shows CDeskewedImageElement class definition of Dynamsoft Document Normalizer SDK C++ Edition.
5+
keywords: GetImageData, CDeskewedImageElement, api reference
6+
---
7+
8+
# CDeskewedImageElement Class
9+
10+
The CDeskewedImageElement class stores an intermediate result whose type is Deskewed image.
11+
12+
## Definition
13+
14+
*Namespace:* dynamsoft::ddn::intermediate_results
15+
16+
*Assembly:* DynamsoftDocumentNormalizer
17+
18+
```cpp
19+
class CDeskewedImageElement: public CRegionObjectElement
20+
```
21+
22+
*Inheritance:* [CRegionObjectElement]({{ site.dcv_cpp_api }}core/intermediate-results/region-object-element.html) -> CDeskewedImageElement
23+
24+
## Methods
25+
26+
| Method | Description |
27+
|--------|-------------|
28+
| [`SetImageData`](#setimagedata) | Sets the image data of the deskewed image element. |
29+
| [`GetSourceDeskewQuad`](#getsourcedeskewquad) | Gets the quadrilateral used for deskewing the image. |
30+
31+
### SetImageData
32+
33+
Sets the image data of the deskewed image element.
34+
35+
```cpp
36+
virtual int SetImageData(const CImageData* imgData) = 0;
37+
```
38+
39+
**Parameters**
40+
41+
`imgData` The image data to set.
42+
43+
**Return Value**
44+
45+
Returns 0 if succeeds, nonzero otherwise.
46+
47+
**See Also**
48+
49+
* [CImageData]({{ site.dcv_cpp_api }}core/basic-structures/image-data.html)
50+
51+
### GetSourceDeskewQuad
52+
53+
Gets the quadrilateral used for deskewing the image.
54+
55+
```cpp
56+
virtual CQuadrilateral GetSourceDeskewQuad() const = 0;
57+
```
58+
59+
**Return Value**
60+
61+
Returns A `CQuadrilateral` object representing the four corners of the quadrilateral used to deskew the image.
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
---
2+
layout: default-layout
3+
title: CDeskewedImageResultItem Class
4+
description: This page shows CDeskewedImageResultItem class definition of Dynamsoft Document Normalizer SDK C++ Edition.
5+
keywords: GetImageData, SaveToFile, CDeskewedImageResultItem, api reference
6+
---
7+
8+
# CDeskewedImageResultItem Class
9+
10+
The CDeskewedImageResultItem class stores a captured result item whose type is Deskewed image.
11+
12+
## Definition
13+
14+
*Namespace:* dynamsoft::ddn
15+
16+
*Assembly:* DynamsoftDocumentNormalizer
17+
18+
```cpp
19+
class CDeskewedImageResultItem: CCapturedResultItem
20+
```
21+
22+
*Inheritance:* [CCapturedResultItem]({{ site.dcv_cpp_api }}core/basic-structures/captured-result-item.html) -> CDeskewedImageResultItem
23+
24+
## Methods
25+
26+
| Method | Description |
27+
|--------|-------------|
28+
| [`GetImageData`](#getimagedata) | Gets the ImageData of current object. |
29+
| [`GetSourceDeskewQuad`](#getsourcedeskewquad)| Gets the quadrilateral used for deskewing the image. |
30+
| [`GetCrossVerificationStatus`](getcrossverificationstatus)| Gets the status of current object as a verified deskewed image. |
31+
| [`SetCrossVerificationStatus`](setcrossverificationstatus)| Sets the status of current object. |
32+
| [`GetOriginalToLocalMatrix`](getoriginaltolocalmatrix) | Gets the transformation matrix from the original image coordinate system to the local coordinate system. |
33+
34+
### GetImageData
35+
36+
Gets the ImageData of current object.
37+
38+
```cpp
39+
const CImageData* GetImageData()
40+
```
41+
42+
**Return Value**
43+
44+
The image data.
45+
46+
**See Also**
47+
48+
* [CImageData]({{ site.dcv_cpp_api }}core/basic-structures/image-data.html)
49+
50+
### GetSourceDeskewQuad
51+
52+
Gets the quadrilateral used for deskewing the image.
53+
54+
```cpp
55+
virtual CQuadrilateral GetSourceDeskewQuad() const = 0;
56+
```
57+
58+
**Return Value**
59+
60+
A `CQuadrilateral` object representing the four corners of the quadrilateral used to deskew the image.
61+
62+
**See Also**
63+
64+
* [CQuadrilateral]({{ site.dcv_cpp_api }}core/basic-structures/quadrilateral.html)
65+
66+
### GetCrossVerificationStatus
67+
68+
Gets the status of current object as a verified deskewed image.
69+
70+
```cpp
71+
virtual CrossVerificationStatus GetCrossVerificationStatus() const = 0;
72+
```
73+
74+
**Return Value**
75+
76+
Return the CrossVerificationStatus of the deskewed image result.
77+
78+
### SetCrossVerificationStatus
79+
80+
Sets the status of current object.
81+
82+
```cpp
83+
virtual void SetCrossVerificationStatus(CrossVerificationStatus status) = 0;
84+
```
85+
86+
**Parameters**
87+
88+
`[in] status` The CrossVerificationStatus to be set.
89+
90+
### GetOriginalToLocalMatrix
91+
92+
Gets the transformation matrix from the original image coordinate system to the local coordinate system.
93+
94+
```cpp
95+
virtual void GetOriginalToLocalMatrix(double matrix[9]) const = 0;
96+
```
97+
98+
**Parameters**
99+
100+
`[out] matrix` matrix A double array of size 9, representing the 3x3 transformation matrix that converts coordinates from the original image to the local image.
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
layout: default-layout
3+
title: CDeskewedImagesUnit Class
4+
description: This page shows CDeskewedImagesUnit class definition of Dynamsoft Document Normalizer SDK C++ Edition.
5+
keywords: GetDeskewedImage, CDeskewedImagesUnit, api reference
6+
permalink: /programming/cplusplus/api-reference/Deskewed-image-unit.html
7+
---
8+
9+
# CDeskewedImagesUnit Class
10+
11+
The CDeskewedImagesUnit class represents an intermediate result unit whose type is Deskewed images.
12+
13+
## Definition
14+
15+
*Namespace:* dynamsoft::ddn::intermediate_results
16+
17+
*Assembly:* DynamsoftDocumentNormalizer
18+
19+
```cpp
20+
class CDeskewedImagesUnit: CIntermediateResultUnit
21+
```
22+
23+
*Inheritance:* [CIntermediateResultUnit]({{ site.dcv_cpp_api }}core/intermediate-results/intermediate-result-unit.html) -> CDeskewedImagesUnit
24+
25+
## Methods
26+
27+
| Method | Description |
28+
|--------|-------------|
29+
| [`GetDeskewedImage`](#getdeskewedimage) | Gets a DeskewedImage object from current object. |
30+
| [`SetDeskewedImage`](#setdeskewedimage) | Sets the Deskewed image. |
31+
32+
### GetDeskewedImage
33+
34+
Gets a DeskewedImage object from current unit.
35+
36+
```cpp
37+
virtual const CDeskewedImageElement* GetDeskewedImage() const = 0;
38+
```
39+
40+
**Return Value**
41+
42+
Returns the `CDeskewedImageElement` object.
43+
44+
**See Also**
45+
46+
* [CDeskewedImageElement]({{ site.ddn_cpp_api }}deskewed-image-element.html)
47+
48+
### SetDeskewedImage
49+
50+
Sets the Deskewed image.
51+
52+
```cpp
53+
virtual int SetDeskewedImage(const CDeskewedImageElement* element, const double matrixToOriginalImage[9] = IDENTITY_MATRIX) = 0;
54+
```
55+
56+
**Parameters**
57+
58+
`[in] element` The Deskewed image to be set.
59+
60+
`[in] matrixToOriginalImage` The matrix to original image.
61+
62+
**Return value**
63+
64+
Returns 0 if successful, otherwise returns a negative value.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
layout: default-layout
3+
title: CDetectedQuadElement Class
4+
description: This page shows CDetectedQuadElement class definition of Dynamsoft Document Normalizer SDK C++ Edition.
5+
keywords: GetConfidenceAsDocumentBoundary, CDetectedQuadElement, api reference
6+
---
7+
8+
# CDetectedQuadElement Class
9+
10+
The CDetectedQuadElement class stores an intermediate result whose type is detected quad.
11+
12+
## Definition
13+
14+
*Namespace:* dynamsoft::ddn::intermediate_results
15+
16+
*Assembly:* DynamsoftDocumentNormalizer
17+
18+
```cpp
19+
class CDetectedQuadElement: CRegionObjectElement
20+
```
21+
22+
*Inheritance:* [CRegionObjectElement]({{ site.dcv_cpp_api }}core/intermediate-results/region-object-element.html) -> CDetectedQuadElement
23+
24+
## Methods
25+
26+
| Method | Description |
27+
|--------|-------------|
28+
| [`GetConfidenceAsDocumentBoundary`](#getconfidenceasdocumentboundary) | Gets the confidence as document boundary of current object. |
29+
30+
### GetConfidenceAsDocumentBoundary
31+
32+
Gets the confidence as document boundary of current object.
33+
34+
```cpp
35+
int GetConfidenceAsDocumentBoundary()
36+
```
37+
38+
**Return Value**
39+
40+
The confidence as document boundary of current object.

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ layout: default-layout
33
title: CDetectedQuadElement Class
44
description: This page shows CDetectedQuadElement class definition of Dynamsoft Document Normalizer SDK C++ Edition.
55
keywords: GetConfidenceAsDocumentBoundary, CDetectedQuadElement, api reference
6-
permalink: /programming/cplusplus/api-reference/detected-quad-element.html
76
---
87

98
# CDetectedQuadElement Class
@@ -27,6 +26,7 @@ class CDetectedQuadElement: CRegionObjectElement
2726
| Method | Description |
2827
|--------|-------------|
2928
| [`GetConfidenceAsDocumentBoundary`](#getconfidenceasdocumentboundary) | Gets the confidence as document boundary of current object. |
29+
| [`SetLocation`](#setlocation) | Sets the location of the detected quad element. |
3030
3131
### GetConfidenceAsDocumentBoundary
3232
@@ -39,3 +39,19 @@ int GetConfidenceAsDocumentBoundary()
3939
**Return Value**
4040

4141
The confidence as document boundary of current object.
42+
43+
### SetLocation
44+
45+
Sets the location of the detected quad element.
46+
47+
```cpp
48+
virtual int SetLocation(const CQuadrilateral& location) = 0;
49+
```
50+
51+
**Parameters**
52+
53+
`location` The location of the detected quad element.
54+
55+
**Return Value**
56+
57+
Returns 0 if success, otherwise an error code.
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
---
2+
layout: default-layout
3+
title: class CDocumentNormalizerModule - Dynamsoft Document Normalizer Classes
4+
description: This page shows the C++ edition of the class CDocumentNormalizerModule in Document Normalizer Module.
5+
keywords: document normalizer module, c++
6+
needAutoGenerateSidebar: true
7+
needGenerateH3Content: true
8+
breadcrumbText: C++ CDocumentNormalizerModule Class
9+
---
10+
11+
# CDocumentNormalizerModule
12+
13+
The `CDocumentNormalizerModule` class defines general functions in the document normalizer module.
14+
15+
## Definition
16+
17+
*Namespace:* dynamsoft::ddn
18+
19+
*Assembly:* DynamsoftDocumentNormalizer
20+
21+
```cpp
22+
class CDocumentNormalizerModule
23+
```
24+
25+
## Methods Summary
26+
27+
| Method | Description |
28+
| ------------------------------------------------------------- | ------------------------------------------------------ |
29+
| [GetVersion](#getversion) | Returns the version of the document normalizer module. |
30+
| [CreateNormalizedImageElement](#createnormalizedimageelement) | Create a Normalized Image Element object. |
31+
| [CreateDetectedQuadElement](#createdetectedquadelement) | Create a Detected Quad Element object. |
32+
33+
## GetVersion
34+
35+
Returns the version of the document normalizer module.
36+
37+
```cpp
38+
static const char* GetVersion();
39+
```
40+
41+
**Parameters**
42+
43+
None.
44+
45+
**Return Value**
46+
47+
Returns a const char pointer representing the version of the document normalizer module.
48+
49+
## CreateNormalizedImageElement
50+
51+
Create a Normalized Image Element object.
52+
53+
```cpp
54+
static intermediate_results::CNormalizedImageElement* CreateNormalizedImageElement();
55+
```
56+
57+
**Parameters**
58+
59+
None.
60+
61+
**Return Value**
62+
63+
Returns an instance of CNormalizedImageElement.
64+
65+
## CreateDetectedQuadElement
66+
67+
Create a Detected Quad Element object.
68+
69+
```cpp
70+
static intermediate_results::CDetectedQuadElement* CreateDetectedQuadElement();
71+
```
72+
73+
**Parameters**
74+
75+
None.
76+
77+
**Return Value**
78+
79+
Returns an instance of CDetectedQuadElement.

0 commit comments

Comments
 (0)