Skip to content

Commit ad159c0

Browse files
Merge pull request #71 from dynamsoft-docs/preview
update to internal commit 2649f719
2 parents 33b3766 + 5a8515b commit ad159c0

File tree

97 files changed

+6559
-228
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+6559
-228
lines changed

_data/full_tree.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ tree_file_list:
55
- sidelist-programming/programming-cpp.html
66
- sidelist-programming/programming-dotnet.html
77
- sidelist-programming/programming-python-v2.4.2100.html
8+
- sidelist-programming/programming-python-v2.5.2100.html
89
- sidelist-programming/programming-python.html
910
- sidelist-programming/sidelist-architecture-v2.6.1000.html
1011
- sidelist-programming/sidelist-architecture.html

_includes/sidelist-programming/programming-cpp.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@
134134
<li><a href="{{ site.ddn_cpp_api }}detected-quads-unit.html" class="otherLinkColour">CDetectedQuadsUnit</a></li>
135135
<li><a href="{{ site.ddn_cpp_api }}deskewed-image-element.html" class="otherLinkColour">CDeskewedImageElement</a></li>
136136
<li><a href="{{ site.ddn_cpp_api }}deskewed-image-result-item.html" class="otherLinkColour">CDeskewedImageResultItem</a></li>
137-
<li><a href="{{ site.ddn_cpp_api }}deskewed-image-unit.html" class="otherLinkColour">CDeskewedImagesUnit</a></li>
137+
<li><a href="{{ site.ddn_cpp_api }}deskewed-image-unit.html" class="otherLinkColour">CDeskewedImageUnit</a></li>
138138
<li><a href="{{ site.ddn_cpp_api }}document-normalizer-module.html" class="otherLinkColour">CDocumentNormalizerModule</a></li>
139139
<li><a href="{{ site.ddn_cpp_api }}enhanced-image-element.html" class="otherLinkColour">CEnhancedImageElement</a></li>
140140
<li><a href="{{ site.ddn_cpp_api }}enhanced-image-result-item.html" class="otherLinkColour">CEnhancedImageResultItem</a></li>
141-
<li><a href="{{ site.ddn_cpp_api }}enhanced-image-unit.html" class="otherLinkColour">CEnhancedImagesUnit</a></li>
141+
<li><a href="{{ site.ddn_cpp_api }}enhanced-image-unit.html" class="otherLinkColour">CEnhancedImageUnit</a></li>
142142
<li><a href="{{ site.ddn_cpp_api }}long-lines-unit.html" class="otherLinkColour">CLongLinesUnit</a></li>
143143
<li><a href="{{ site.ddn_cpp_api }}logic-lines-unit.html" class="otherLinkColour">CLogicLinesUnit</a></li>
144144
<li><a href="{{ site.ddn_cpp_api }}processed-document-result.html" class="otherLinkColour">CProcessedDocumentResult</a></li>
@@ -161,6 +161,7 @@
161161
{%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath lang=include.lang targetRelativePath="sidelist-code-types.html" -%}
162162
<li><a>Classes</a>
163163
<ul>
164+
<li><a href="{{ site.dcp_cpp_api }}code-parser-module.html" class="otherLinkColour">CCodeParserModule</a></li>
164165
<li><a href="{{ site.dcp_cpp_api }}parsed-result-item.html" class="otherLinkColour">CParsedResultItem</a></li>
165166
<li><a href="{{ site.dcp_cpp_api }}parsed-result.html" class="otherLinkColour">CParsedResult</a></li>
166167
</ul>

_includes/sidelist-programming/programming-python-v2.5.2100.html

Lines changed: 262 additions & 0 deletions
Large diffs are not rendered by default.

_includes/sidelist-programming/programming-python.html

Lines changed: 73 additions & 49 deletions
Large diffs are not rendered by default.

assets/js/dcvServerVersionSearch.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
[
2+
{
3+
"version": "3.0.2000",
4+
"matchVersion": {
5+
"python": "11.0.2000"
6+
}
7+
},
28
{
39
"version": "3.0.1000",
410
"matchVersion": {

programming/cplusplus/api-reference/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ needAutoGenerateSidebar: false
112112
- [`CDetectedQuadsUnit`]({{ site.ddn_cpp_api }}detected-quads-unit.html)
113113
- [`CDeskewedImageElement`]({{ site.ddn_cpp_api }}deskewed-image-element.html)
114114
- [`CDeskewedImageResultItem`]({{ site.ddn_cpp_api }}deskewed-image-result-item.html)
115-
- [`CDeskewedImagesUnit`]({{ site.ddn_cpp_api }}deskewed-image-unit.html)
115+
- [`CDeskewedImageUnit`]({{ site.ddn_cpp_api }}deskewed-image-unit.html)
116116
- [`CEnhancedImageElement`]({{ site.ddn_cpp_api }}enhanced-image-element.html)
117117
- [`CEnhancedImageResultItem`]({{ site.ddn_cpp_api }}enhanced-image-result-item.html)
118-
- [`CEnhancedImagesUnit`]({{ site.ddn_cpp_api }}enhanced-image-unit.html)
118+
- [`CEnhancedImageUnit`]({{ site.ddn_cpp_api }}enhanced-image-unit.html)
119119
- [`CDocumentNormalizerModule`]({{ site.ddn_cpp_api }}document-normalizer-module.html)
120120
- [`CLogicLinesUnit`]({{ site.ddn_cpp_api }}logic-lines-unit.html)
121121
- [`CLongLinesUnit`]({{ site.ddn_cpp_api }}long-lines-unit.html)
@@ -133,6 +133,7 @@ needAutoGenerateSidebar: false
133133

134134
### Classes
135135

136+
- [`CCodeParserModule`]({{ site.dcp_cpp_api }}code-parser-module.html)
136137
- [`CParsedResultItem`]({{ site.dcp_cpp_api }}parsed-result-item.html)
137138
- [`CParsedResult`]({{ site.dcp_cpp_api }}parsed-result.html)
138139

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
layout: default-layout
3+
title: CaptureStateListener Class - Dynamsoft Capture Vision Module Python Edition API Reference
4+
description: Definition of CaptureStateListener class in Dynamsoft Capture Vision Module Python Edition.
5+
keywords: capture state listener, python
6+
needAutoGenerateSidebar: true
7+
needGenerateH3Content: true
8+
---
9+
10+
# CaptureStateListener
11+
12+
Defines a listener for capture state changes.
13+
14+
>Note: Subclasses inheriting from this class must ensure that the parent class constructor (`super().__init__()`) is properly called to guarantee correct initialization.
15+
16+
## Definition
17+
18+
*Module:* dynamsoft_capture_vision_router
19+
20+
```python
21+
class CaptureStateListener(ABC)
22+
```
23+
24+
## Methods
25+
26+
| Method | Description |
27+
| ------------------------------------------------- | -------------------------------------- |
28+
| [`on_capture_state_changed`](#on_capture_state_changed) | Called when the capture state changes. |
29+
30+
### on_capture_state_changed
31+
32+
Called when the capture state changes.
33+
34+
```python
35+
@abstractmethod
36+
def on_capture_state_changed(self, state: int) -> None:
37+
```
38+
39+
**Parameters**
40+
41+
`state` The new capture state. It is one of the values of the `EnumCaptureState` enumeration.
42+
43+
**See Also**
44+
45+
[EnumCaptureState]({{ site.dcvb_enumerations }}capture-vision-router/capture-state.html?lang=python)

programming/python/api-reference/capture-vision-router/auxiliary-classes/capture-state-listener.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ def on_capture_state_changed(self, state: int) -> None:
4242

4343
**See Also**
4444

45-
[EnumCaptureState]({{ site.dcvb_enumerations }}capture-vision-router/capture-state.html?lang=python)
45+
[EnumCaptureState]({{ site.dcvb_python_api }}capture-vision-router/enum-capture-state.html)
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
layout: default-layout
3+
title: CapturedResultArray Class - Dynamsoft Capture Vision Module Python Edition API Reference
4+
description: Definition of CapturedResultArray class in Dynamsoft Capture Vision Module Python Edition.
5+
keywords: captured result, python
6+
needAutoGenerateSidebar: true
7+
---
8+
9+
# CapturedResultArray
10+
11+
The `CapturedResultArray` class represents a collection of `CaptureResult`, each derived from a capture operation on an image. Internally, `CaptureResult` maintains an array of items, which may include barcodes, text lines, detected quads, normalized images, raw images, parsed items, and more.
12+
13+
## Definition
14+
15+
*Module:* dynamsoft_capture_vision_router
16+
17+
```python
18+
class CapturedResultArray
19+
```
20+
21+
## Methods
22+
23+
| Method | Description |
24+
|----------------------|-------------|
25+
| [`get_results`](#get_results) | Gets all `CapturedResult` objects from current result collection. |
26+
27+
### get_results
28+
29+
Gets all `CapturedResult` objects from current result collection.
30+
31+
```python
32+
def get_results(self) -> List[CapturedResult]:
33+
```
34+
35+
**Return value**
36+
37+
Returns a `CapturedResult` list.
38+
39+
**See Also**
40+
41+
[CapturedResult]({{ site.dcvb_python_api }}capture-vision-router/auxiliary-classes/captured-result.html)
42+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
---
2+
layout: default-layout
3+
title: CapturedResultReceiver Class - Dynamsoft Capture Vision Module Python Edition API Reference
4+
description: Definition of CapturedResultReceiver class in Dynamsoft Capture Vision Module Python Edition.
5+
keywords: captured result receiver, python
6+
needAutoGenerateSidebar: true
7+
needGenerateH3Content: true
8+
---
9+
10+
# CapturedResultReceiver
11+
12+
The `CapturedResultReceiver` class is responsible for receiving captured results. It contains several callback functions for different types of results, including original image, decoded barcodes, recognized text lines, detected quads, normalized images, and parsed results.
13+
14+
>Note: Subclasses inheriting from this class must ensure that the parent class constructor (`super().__init__()`) is properly called to guarantee correct initialization.
15+
16+
## Definition
17+
18+
*Module:* dynamsoft_capture_vision_router
19+
20+
```python
21+
class CapturedResultReceiver
22+
```
23+
24+
## Methods
25+
26+
| Method | Description |
27+
| ----------------------------------------------------------------- | ---------------------------------------------------- |
28+
| [`on_captured_result_received`](#on_captured_result_received) | Callback function triggered after processing each image and returns all captured results. |
29+
| [`on_original_image_result_received`](#on_original_image_result_received) | Callback function triggered when start processing each image and returns the original image result. |
30+
| [`on_decoded_barcodes_received`](#on_decoded_barcodes_received) | Callback function triggered after processing each image and returns all decoded barcodes results. |
31+
| [`on_recognized_text_lines_received`](#on_recognized_text_lines_received) | Callback function triggered after processing each image and returns all recognized text lines results. |
32+
| [`on_detected_quads_received`](#on_detected_quads_received) | Callback function triggered after processing each image and returns all detected quads results. |
33+
| [`on_normalized_images_received`](#on_normalized_images_received) | Callback function triggered after processing each image and returns all normalized images results. |
34+
| [`on_parsed_results_received`](#on_parsed_results_received) | Callback function triggered after processing each image and returns all parsed results. |
35+
| [`get_name`](#get_name) | Gets the name of the captured result receiver. |
36+
| [`set_name`](#set_name) | Sets the name of the captured result receiver. |
37+
38+
### on_captured_result_received
39+
40+
Callback function triggered after processing each image and returns all captured results.
41+
42+
```python
43+
def on_captured_result_received(self, result: CapturedResult) -> None:
44+
```
45+
46+
**Parameters**
47+
48+
`result` The captured result.
49+
50+
**See Also**
51+
52+
[CapturedResult]({{ site.dcvb_python_api }}capture-vision-router/auxiliary-classes/captured-result.html)
53+
54+
### on_original_image_result_received
55+
56+
Callback function triggered when start processing each image and returns the original image result. For the callback to be triggered, it is essential that the parameter `OutputOriginalImage` is set to value `1`.
57+
58+
```python
59+
def on_original_image_result_received(self, result: OriginalImageResultItem) -> None:
60+
```
61+
62+
**Parameters**
63+
64+
`result` The original image result.
65+
66+
**See Also**
67+
68+
[OriginalImageResultItem]({{ site.dcvb_python_api }}core/basic-classes/original-image-result-item.html)
69+
70+
### on_decoded_barcodes_received
71+
72+
Callback function triggered after processing each image and returns all decoded barcodes. For the callback to be triggered, it is essential that the `BarcodeReaderTask` is properly configured.
73+
74+
```python
75+
def on_decoded_barcodes_received(self, result: "DecodedBarcodesResult") -> None:
76+
```
77+
78+
**Parameters**
79+
80+
`result` The decoded barcodes result.
81+
82+
**See Also**
83+
84+
[DecodedBarcodesResult]({{ site.dbr_python_api }}decoded-barcodes-result.html)
85+
86+
### on_recognized_text_lines_received
87+
88+
Callback function triggered after processing each image and returns all recognized text lines. For the callback to be triggered, it is essential that the `LabelRecognizerTask` is properly configured.
89+
90+
```python
91+
def on_recognized_text_lines_received(self, result: "RecognizedTextLinesResult") -> None:
92+
```
93+
94+
**Parameters**
95+
96+
`result` The recognized text lines result.
97+
98+
**See Also**
99+
100+
[RecognizedTextLinesResult]({{ site.dlr_python_api }}recognized-text-lines-result.html)
101+
102+
### on_detected_quads_received
103+
104+
Callback function triggered after processing each image and returns all detected quads. For the callback to be triggered, it is essential that the `DocumentNormalizerTask` is properly configured.
105+
106+
```python
107+
def on_detected_quads_received(self, result: "DetectedQuadsResult") -> None:
108+
```
109+
110+
**Parameters**
111+
112+
`result` The detected quads result.
113+
114+
**See Also**
115+
116+
[DetectedQuadsResult]({{ site.ddn_python_api }}detected-quads-result.html)
117+
118+
### on_normalized_images_received
119+
120+
Callback function triggered after processing each image and returns all normalized images. For the callback to be triggered, it is essential that the `DocumentNormalizerTask` is properly configured.
121+
122+
```python
123+
def on_normalized_images_received(self, result: "NormalizedImagesResult") -> None:
124+
```
125+
126+
**Parameters**
127+
128+
`result` The normalized images result.
129+
130+
**See Also**
131+
132+
[NormalizedImagesResult]({{ site.ddn_python_api }}normalized-images-result.html)
133+
134+
### on_parsed_results_received
135+
136+
Callback function triggered after processing each image and returns all parsed results. For the callback to be triggered, it is essential that the `CodeParserTask` is properly configured.
137+
138+
```python
139+
def on_parsed_results_received(self, result: "ParsedResult") -> None:
140+
```
141+
142+
**Parameters**
143+
144+
`result` The parsed result.
145+
146+
**See Also**
147+
148+
[ParsedResult]({{ site.dcp_python_api }}parsed-result.html)
149+
150+
### get_name
151+
152+
Gets the name of the captured result receiver.
153+
154+
```python
155+
def get_name(self) -> str:
156+
```
157+
158+
**Return Value**
159+
160+
Returns the name of the captured result receiver.
161+
162+
### set_name
163+
164+
Sets the name of the captured result receiver.
165+
166+
```python
167+
def set_name(self, name: str) -> None:
168+
```
169+
170+
**Parameters**
171+
172+
`name` The name of the captured result receiver.

0 commit comments

Comments
 (0)