Skip to content

Commit f22b86a

Browse files
Merge pull request #39 from dynamsoft-docs/preview
update to internal commit 4b598ecb
2 parents cf3cf8e + 505d1ef commit f22b86a

12 files changed

+733
-6
lines changed
Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
---
2+
layout: default-layout
3+
title: CandidateQuadEdgesUnit Class
4+
description: This page shows CandidateQuadEdgesUnit class definition of Dynamsoft Document Normalizer SDK Python Edition.
5+
keywords: get_count, get_candidate_quad_edge, CandidateQuadEdgesUnit, api reference
6+
---
7+
8+
# CandidateQuadEdgesUnit Class
9+
10+
The `CandidateQuadEdgesUnit` class represents an intermediate result unit whose type is candidate quad edges.
11+
12+
## Definition
13+
14+
*Module:* dynamsoft_document_normalizer
15+
16+
```python
17+
class CandidateQuadEdgesUnit(IntermediateResultUnit)
18+
```
19+
20+
*Inheritance:* [IntermediateResultUnit]({{ site.dcv_python_api }}core/intermediate-results/intermediate-result-unit.html) -> CandidateQuadEdgesUnit
21+
22+
## Methods
23+
24+
| Method | Description |
25+
|--------|-------------|
26+
| [`get_count`](#get_count) | Gets the count of `CandidateQuadEdge` objects in current object.|
27+
| [`get_candidate_quad_edge`](#get_candidate_quad_edge) | Gets a `CandidateQuadEdge` object from current object by specifying a index. |
28+
| [`remove_all_candidate_quad_edges`](#remove_all_candidate_quad_edges) | Removes all the candidate quad edges in current object. |
29+
| [`remove_candidate_quad_edge`](#remove_candidate_quad_edge) | Removes a candidate quad edge from current object by specifying an index. |
30+
| [`add_candidate_quad_edge`](#add_candidate_quad_edge) | Adds a candidate quad edge to current object. |
31+
| [`set_candidate_quad_edge`](#set_candidate_quad_edge) | Sets the candidate quad edge at the specified index. |
32+
33+
### get_count
34+
35+
Gets the count of `CandidateQuadEdge` objects in current object.
36+
37+
```python
38+
def get_count(self) -> int:
39+
```
40+
41+
**Return Value**
42+
43+
The count of `CandidateQuadEdge` objects in current object.
44+
45+
### get_candidate_quad_edge
46+
47+
Gets a `CandidateQuadEdge` object from current object by specifying a index.
48+
49+
```python
50+
def get_candidate_quad_edge(self, index: int) -> Tuple[int, Edge]:
51+
```
52+
53+
**Parameters**
54+
55+
`index` The index of the `CandidateQuadEdge` object.
56+
57+
**Return Value**
58+
59+
Returns a tuple containing following elements:
60+
- `error_code` <*int*>: The error code indicating the status of the operation.
61+
- `edge` <*Edge*>: The `CandidateQuadEdge` object got by the specific index.
62+
63+
**See Also**
64+
65+
[ErrorCode]({{ site.dcv_enumerations }}core/error-code.html?lang=python)
66+
67+
[Edge]({{ site.dcv_python_api }}core/basic-classes/edge.html)
68+
69+
### remove_all_candidate_quad_edges
70+
71+
Removes all the candidate quad edges in current object.
72+
73+
```python
74+
def remove_all_candidate_quad_edges(self) -> None:
75+
```
76+
77+
### remove_candidate_quad_edge
78+
79+
Removes a candidate quad edge from current object by specifying an index.
80+
81+
```python
82+
def remove_candidate_quad_edge(self, index: int) -> int:
83+
```
84+
85+
**Parameters**
86+
87+
`index` The index of the candidate quad edge to be removed.
88+
89+
**Return Value**
90+
91+
Returns 0 if successful, otherwise returns a negative value.
92+
93+
### add_candidate_quad_edge
94+
95+
Adds a candidate quad edge to current object.
96+
97+
```python
98+
def add_candidate_quad_edge(self, edge: Edge, matrix_to_original_image: List[float] = IDENTITY_MATRIX) -> int:
99+
```
100+
101+
**Parameters**
102+
103+
`edge` The candidate quad edge to be added.
104+
105+
`matrix_to_original_image` The matrix to the original image.
106+
107+
**Return Value**
108+
109+
Returns 0 if successful, otherwise returns a negative value.
110+
111+
**See Also**
112+
113+
[Edge]({{ site.dcv_python_api }}core/basic-classes/edge.html)
114+
115+
### set_candidate_quad_edge
116+
117+
Sets the candidate quad edge at the specified index.
118+
119+
```python
120+
def set_candidate_quad_edge(self, index: int, edge: Edge, matrix_to_original_image: List[float] = IDENTITY_MATRIX) -> int:
121+
```
122+
123+
**Parameters**
124+
125+
`index` The index of the candidate quad edge to be set.
126+
127+
`edge` The candidate quad edge to be added.
128+
129+
`matrix_to_original_image` The matrix to the original image.
130+
131+
**Return Value**
132+
133+
Returns 0 if successful, otherwise returns a negative value.
134+
135+
**See Also**
136+
137+
[Edge]({{ site.dcv_python_api }}core/basic-classes/edge.html)
Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
---
2+
layout: default-layout
3+
title: CornersUnit Class
4+
description: This page shows CornersUnit class definition of Dynamsoft Document Normalizer SDK Python Edition.
5+
keywords: get_count, get_corner, CornersUnit, api reference
6+
---
7+
8+
# CornersUnit Class
9+
10+
The `CornersUnit` class represents an intermediate result unit whose type is corners.
11+
12+
## Definition
13+
14+
*Module:* dynamsoft_document_normalizer
15+
16+
```python
17+
class CornersUnit(IntermediateResultUnit)
18+
```
19+
20+
*Inheritance:* [IntermediateResultUnit]({{ site.dcv_python_api }}core/intermediate-results/intermediate-result-unit.html) -> CornersUnit
21+
22+
## Methods
23+
24+
| Method | Description |
25+
|--------|-------------|
26+
| [`get_count`](#get_count) | Gets the count of `Corner` objects in current object.|
27+
| [`get_corner`](#get_corner) | Gets a `Corner` object from current object by specifying a index. |
28+
| [`remove_all_corners`](#remove_all_corners) | Removes all the corners in current object. |
29+
| [`remove_corner`](#remove_corner) | Removes a corner from current object by specifying an index. |
30+
| [`add_corner`](#add_corner) | Adds a corner to current object. |
31+
| [`set_corner`](#set_corner) | Sets the corner at the specified index. |
32+
33+
### get_count
34+
35+
Gets the count of `Corner` objects in current object.
36+
37+
```python
38+
def get_count(self) -> int:
39+
```
40+
41+
**Return Value**
42+
43+
The count of `Corner` objects in current object.
44+
45+
### get_corner
46+
47+
Gets a `Corner` object from current object by specifying a index.
48+
49+
```python
50+
def get_corner(self, index: int) -> Tuple[int, Corner]:
51+
```
52+
53+
**Parameters**
54+
55+
`index` The index of the `Corner` object.
56+
57+
**Return Value**
58+
59+
Returns a tuple containing following elements:
60+
- `error_code` <*int*>: The error code indicating the status of the operation.
61+
- `corner` <*Corner*>: The `Corner` object got by the specific index.
62+
63+
**See Also**
64+
65+
[ErrorCode]({{ site.dcv_enumerations }}core/error-code.html?lang=python)
66+
67+
[Corner]({{ site.dcv_python_api }}core/basic-classes/corner.html)
68+
69+
### remove_all_corners
70+
71+
Removes all the corners in current object.
72+
73+
```python
74+
def remove_all_corners(self) -> None:
75+
```
76+
77+
### remove_corner
78+
79+
Removes a corner from current object by specifying an index.
80+
81+
```python
82+
def remove_corner(self, index: int) -> int:
83+
```
84+
85+
**Parameters**
86+
87+
`index` The index of the corner to be removed.
88+
89+
**Return Value**
90+
91+
Returns 0 if successful, otherwise returns a negative value.
92+
93+
### add_corner
94+
95+
Adds a corner to current object.
96+
97+
```python
98+
def add_corner(self, corner: Corner, matrix_to_original_image: List[float] = IDENTITY_MATRIX) -> int:
99+
```
100+
101+
**Parameters**
102+
103+
`corner` The corner to be added.
104+
105+
`matrix_to_original_image` The matrix to the original image.
106+
107+
**Return Value**
108+
109+
Returns 0 if successful, otherwise returns a negative value.
110+
111+
**See Also**
112+
113+
[Corner]({{ site.dcv_python_api }}core/basic-classes/corner.html)
114+
115+
### set_corner
116+
117+
Sets the corner at the specified index.
118+
119+
```python
120+
def set_corner(self, index: int, corner: Corner, matrix_to_original_image: List[float] = IDENTITY_MATRIX) -> int:
121+
```
122+
123+
**Parameters**
124+
125+
`index` The index of the corner to be set.
126+
127+
`corner` The corner to be added.
128+
129+
`matrix_to_original_image` The matrix to the original image.
130+
131+
**Return Value**
132+
133+
Returns 0 if successful, otherwise returns a negative value.
134+
135+
**See Also**
136+
137+
[Corner]({{ site.dcv_python_api }}core/basic-classes/corner.html)
138+
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
layout: default-layout
3+
title: DetectedQuadElement Class
4+
description: This page shows DetectedQuadElement class definition of Dynamsoft Document Normalizer SDK Python Edition.
5+
keywords: get_confidence_as_document_boundary, DetectedQuadElement, api reference
6+
---
7+
8+
# DetectedQuadElement Class
9+
10+
The `DetectedQuadElement` class stores an intermediate result whose type is detected quad.
11+
12+
## Definition
13+
14+
*Module:* dynamsoft_document_normalizer
15+
16+
```python
17+
class DetectedQuadElement(RegionObjectElement)
18+
```
19+
20+
*Inheritance:* [RegionObjectElement]({{ site.dcv_python_api }}core/intermediate-results/region-object-element.html) -> DetectedQuadElement
21+
22+
## Methods
23+
24+
| Method | Description |
25+
|--------|-------------|
26+
| [`__init__`](#__init__) | Initializes a new instance of the `DetectedQuadElement` class. |
27+
| [`get_confidence_as_document_boundary`](#get_confidence_as_document_boundary) | Gets the confidence as document boundary of current object. |
28+
29+
### \_\_init\_\_
30+
31+
Initializes a new instance of the `DetectedQuadElement` class.
32+
33+
```python
34+
def __init__(self, *args, **kwargs):
35+
```
36+
37+
### get_confidence_as_document_boundary
38+
39+
Gets the confidence as document boundary of current object.
40+
41+
```python
42+
def get_confidence_as_document_boundary(self) -> int:
43+
```
44+
45+
**Return Value**
46+
47+
The confidence as document boundary of current object.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The `DetectedQuadsResult` class stores a captured result whose type is detected
1414
*Module:* dynamsoft_document_normalizer
1515

1616
```python
17-
class DetectedQuadsResult(object)
17+
class DetectedQuadsResult
1818
```
1919

2020
## Methods

0 commit comments

Comments
 (0)