Skip to content

Commit 9827ea3

Browse files
authored
Merge pull request #34 from dynamsoft-docs/preview
update to internal commit c33a385a
2 parents 7003157 + 34f9f3a commit 9827ea3

File tree

11 files changed

+288
-74
lines changed

11 files changed

+288
-74
lines changed

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ ddn_android: /document-normalizer/docs/mobile/programming/android/
2121
ddn_xamarin: /document-normalizer/docs/mobile/programming/xamarin/
2222

2323
ddn_parameters_reference: /document-normalizer/docs/core/parameters/reference/
24+
dcv_parameters_reference: /capture-vision/docs/core/parameters/reference/
2425

2526
dcv_cpp_api: /capture-vision/docs/server/programming/cplusplus/api-reference/
2627
dcv_dotnet_api: /capture-vision/docs/server/programming/dotnet/api-reference/

_data/product_version.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
useGroupedVersion: true
22

33
version_info_list:
4-
- value: latest version
4+
- value: latest version(2.4.10)
55
- value: 2.x
66
child:
7+
- 2.2.10
78
- 2.2.0
89
- 2.0.20
910
- 2.0.10

_layouts/search-page.html

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -202,57 +202,6 @@ <h1>Search</h1>
202202
window.location.href = '/document-normalizer/docs/server/search.html?q=' + $('#txtSearch').val()
203203
}
204204
})
205-
206-
$("body").delegate("#searchResult .gsc-resultsRoot a.gs-title", "click", function(e) {
207-
e.preventDefault();
208-
209-
var link = $(this).eq(0).data("ctorig")
210-
if (link.indexOf("capture-vision/docs") > 0) {
211-
var repoType = getRepoType("server", link);
212-
if (link.indexOf("?") > 0) {
213-
var arr = link.split("?")
214-
if(arr[1].indexOf("#") > 0) {
215-
var subArr = arr[1].split("#")
216-
link = link +"?product=ddn&repoType="+ repoType +"&" + arr[1]
217-
} else {
218-
link = link + "&product=ddn&repoType=" + repoType
219-
}
220-
} else {
221-
link = link + "?product=ddn&repoType=" + repoType
222-
}
223-
}
224-
window.location.href = link
225-
});
226-
227-
function getRepoType(defaultValue, link) {
228-
var lang = getCurrentUrlLang(link, true)
229-
var repoType = defaultValue
230-
if (lang) {
231-
if (lang == 'android' || lang == 'objectivec-swift') {
232-
repoType = "mobile"
233-
} else if (lang == 'javascript') {
234-
repoType = "web"
235-
} else if (lang == 'cplusplus' || lang == 'c' || lang == 'java' || lang == 'dotnet') {
236-
repoType = "server"
237-
} else {
238-
repoType = "core"
239-
}
240-
} else {
241-
if(link.indexOf("/docs/server/") > 0) {
242-
repoType = "server"
243-
}
244-
if (link.indexOf("/docs/core/") > 0) {
245-
repoType = "core"
246-
}
247-
if (link.indexOf("/docs/mobile") > 0) {
248-
repoType = "mobile"
249-
}
250-
if (link.indexOf("/docs/web/") > 0) {
251-
repoType = "web"
252-
}
253-
}
254-
return repoType
255-
}
256205
</script>
257206

258207
{%- include livehelp.html -%}

assets/js/ddnServerVersionSearch.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,56 @@
11
[
22
{
3+
"version": "2.4.10",
4+
"matchList": {
5+
"cpp":{
6+
"dcvRepoMobile": [
7+
{
8+
"path": "/programming/cpp/api-reference/utility",
9+
"version": "1.4.10"
10+
}, {
11+
"path": "/programming/cpp/api-reference/license",
12+
"version": "3.4.10"
13+
}, {
14+
"path": "/programming/cpp/api-reference/capture-vision-router",
15+
"version": "2.4.10"
16+
}, {
17+
"path": "/programming/cpp/api-reference/core",
18+
"version": "3.4.10"
19+
}, {
20+
"path": "/programming/cpp/api-reference/image-processing",
21+
"version": "2.2.40"
22+
}
23+
],
24+
"dcvRepoCore": [
25+
{
26+
"path": "/enums/capture-vision-router",
27+
"version": "2.4.10"
28+
}, {
29+
"path": "/enums/core",
30+
"version": "3.4.10"
31+
},{
32+
"path": "/parameters/reference/capture-vision-template",
33+
"version": "2.4.10"
34+
},{
35+
"path": "/parameters/reference/target-roi-def",
36+
"version": "2.4.10"
37+
},{
38+
"path": "/parameters/reference/document-normalizer-task-settings",
39+
"version": "2.4.10"
40+
},{
41+
"path": "/parameters/reference/image-parameter",
42+
"version": "2.4.10"
43+
},{
44+
"path": "/parameters/reference/image-source-options",
45+
"version": "3.4.10"
46+
},{
47+
"path": "/parameters/reference/global-parameter",
48+
"version": "2.4.10"
49+
}
50+
]
51+
}
52+
}
53+
},{
354
"version": "2.2.10",
455
"matchList": {
556
"cpp":{

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ class CNormalizedImageResultItem: CCapturedResultItem
2828
|--------|-------------|
2929
| [`GetImageData`](#getimagedata) | Gets the ImageData of current object. |
3030
| [`GetLocation`](#getlocation) | Get the quadrilateral from which you get the normalized image result item. |
31-
| [`GetRotationTransformMatrix`](#getrotationtransformmatrix) | Get the rotation transformation matrix. |
3231
3332
### GetImageData
3433
@@ -62,10 +61,3 @@ The location of current object.
6261

6362
* [CQuadrilateral]({{ site.dcv_cpp_api }}core/basic-structures/quadrilateral.html)
6463

65-
### GetRotationTransformMatrix
66-
67-
Get the rotation transformation matrix.
68-
69-
```cpp
70-
void GetRotationTransformMatrix(double matrix[9])
71-
```
Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
---
2+
layout: default-layout
3+
title: struct SimplifiedDocumentNormalizerSettings - Dynamsoft Capture Vision C++ Edition API Reference
4+
description: This page shows the SimplifiedDocumentNormalizerSettings struct of the CCaptureVisionRouter class of the Dynamsoft Capture Vision C++ Edition.
5+
keywords: struct, c++, SimplifiedDocumentNormalizerSettings
6+
needAutoGenerateSidebar: true
7+
needGenerateH3Content: true
8+
breadcrumbText: CVR C++ SimplifiedDocumentNormalizerSettings Struct
9+
---
10+
11+
# SimplifiedDocumentNormalizerSettings
12+
13+
The `SimplifiedDocumentNormalizerSettings` struct contains settings for document normalization. It is a sub-parameter of `SimplifiedCaptureVisionSettings`
14+
15+
```cpp
16+
typedef struct tagSimplifiedDocumentNormalizerSettings
17+
{
18+
GrayscaleTransformationMode grayscaleTransformationModes[8];
19+
GrayscaleEnhancementMode grayscaleEnhancementModes[8];
20+
ImageColourMode colourMode;
21+
int pageSize[2];
22+
int brightness;
23+
int contrast;
24+
int maxThreadsInOneTask;
25+
int scaleDownThreshold;
26+
char reserved[512];
27+
} SimplifiedDocumentNormalizerSettings;
28+
29+
```
30+
31+
## Attributes Summary
32+
33+
| Attribute | Type |
34+
| --------- | ---- |
35+
| [`grayscaleTransformationModes`](#grayscaletransformationmodes) | *GrayscaleTransformationMode[8]* |
36+
| [`grayscaleEnhancementModes`](#grayscaleenhancementmodes) | *GrayscaleEnhancementMode[8]* |
37+
| [`colourMode`](#colourmode) | *int* |
38+
| [`pageSize`](#pagesize) | *int[2]* |
39+
| [`brightness`](#brightness) | *int* |
40+
| [`contrast`](#contrast) | *int* |
41+
| [`maxThreadsInOneTask`](#maxthreadsinonetask) | *int* |
42+
| [`scaleDownThreshold`](#scaledownthreshold) | *int* |
43+
| [`reserved`](#reserved) | *char[508]* |
44+
45+
### grayscaleTransformationModes
46+
47+
Set the grayscale transformation modes with an array of enumeration `GrayscaleTransformationMode`. View the reference page of <a href="{{ site.dcv_enumerations}}core/grayscale-transformation-mode.html?src=cpp&&lang=cpp" target="_blank">`GrayscaleTransformationMode`</a> for more detail about grayscale transformation modes.
48+
49+
```cpp
50+
GrayscaleTransformationMode grayscaleTransformationModes[8];
51+
```
52+
53+
### grayscaleEnhancementModes
54+
55+
Set the grayscale enhancement modes with an array of enumeration `GrayscaleEnhancementMode`. View the reference page of <a href="{{ site.dcv_enumerations}}core/grayscale-enhancement-mode.html?src=cpp&&lang=cpp" target="_blank">`GrayscaleEnhancementMode`</a> for more detail about grayscale enhancement modes.
56+
57+
```cpp
58+
GrayscaleEnhancementMode grayscaleEnhancementModes[8];
59+
```
60+
61+
### colourMode
62+
63+
Set the output image colour mode.
64+
65+
```cpp
66+
ImageColourMode colourMode;
67+
```
68+
69+
**Value Range**
70+
71+
"ICM_BINARY", "ICM_GRAYSCALE", "ICM_COLOUR"
72+
73+
**Default value**
74+
75+
"ICM_COLOUR"
76+
77+
### pageSize
78+
79+
Set the page size (width by height in pixels) of the normalized image.
80+
81+
```cpp
82+
int pageSize[2];
83+
```
84+
85+
86+
### brightness
87+
88+
Set the brightness of the normalized image.
89+
90+
```cpp
91+
int brightness;
92+
```
93+
94+
**Value Range**
95+
96+
[-100,100]
97+
98+
**Default value**
99+
100+
0
101+
102+
### contrast
103+
104+
Set the contrast of the normalized image.
105+
106+
```cpp
107+
int contrast
108+
```
109+
110+
**Value Range**
111+
112+
[-100,100]
113+
114+
**Default value**
115+
116+
0
117+
118+
### maxThreadsInOneTask
119+
120+
Set the maximum available threads count in one document normalization task.
121+
122+
```cpp
123+
int maxThreadsInOneTask;
124+
```
125+
126+
**Value Range**
127+
128+
[1, 256]
129+
130+
**Default value**
131+
132+
4
133+
134+
**Remarks**
135+
136+
To keep a balance between speed and quality, the library concurrently runs four different threads by default.
137+
138+
### scaleDownThreshold
139+
140+
Sets the threshold for the image shrinking.
141+
142+
```cpp
143+
int scaleDownThreshold;
144+
```
145+
146+
**Value Range**
147+
148+
[512, 0x7fffffff]
149+
150+
**Default Value**
151+
152+
2300
153+
154+
**Remarks**
155+
156+
If the shorter edge size is larger than the given threshold value, the library will calculate the required height and width of the barcode image and shrink the image to that size before detection. Otherwise, the library will perform document detection on the original image.
157+
158+
### reserved
159+
160+
Reserved for future use.
161+
162+
```cpp
163+
char reserved[508];
164+
```

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

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ breadcrumbText: CVR C++ SimplifiedDocumentNormalizerSettings Struct
1313
The `SimplifiedDocumentNormalizerSettings` struct contains settings for document normalization. It is a sub-parameter of `SimplifiedCaptureVisionSettings`
1414

1515
```cpp
16-
typedef struct SimplifiedDocumentNormalizerSettings
16+
typedef struct tagSimplifiedDocumentNormalizerSettings
1717
{
1818
GrayscaleTransformationMode grayscaleTransformationModes[8];
1919
GrayscaleEnhancementMode grayscaleEnhancementModes[8];
@@ -23,7 +23,9 @@ typedef struct SimplifiedDocumentNormalizerSettings
2323
int contrast;
2424
int maxThreadsInOneTask;
2525
int scaleDownThreshold;
26-
char reserved[512];
26+
int minQuadrilateralAreaRatio;
27+
int expectedDocumentsCount;
28+
char reserved[504];
2729
} SimplifiedDocumentNormalizerSettings;
2830

2931
```
@@ -40,7 +42,9 @@ typedef struct SimplifiedDocumentNormalizerSettings
4042
| [`contrast`](#contrast) | *int* |
4143
| [`maxThreadsInOneTask`](#maxthreadsinonetask) | *int* |
4244
| [`scaleDownThreshold`](#scaledownthreshold) | *int* |
43-
| [`reserved`](#reserved) | *char[508]* |
45+
| [`minQuadrilateralAreaRatio`](#minquadrilateralarearatio) | *int* |
46+
| [`expectedDocumentsCount`](#expecteddocumentscount) | *int* |
47+
| [`reserved`](#reserved) | *char[504]* |
4448

4549
### grayscaleTransformationModes
4650

@@ -155,10 +159,42 @@ int scaleDownThreshold;
155159

156160
If the shorter edge size is larger than the given threshold value, the library will calculate the required height and width of the barcode image and shrink the image to that size before detection. Otherwise, the library will perform document detection on the original image.
157161

162+
### minQuadrilateralAreaRatio
163+
164+
Set the minimum ratio between the target document area and the total image area. Only those exceeding this value will be outputted (measured in percentages).
165+
166+
```cpp
167+
int minQuadrilateralAreaRatio;
168+
```
169+
170+
**Value Range**
171+
172+
[0, 100]
173+
174+
**Default Value**
175+
176+
0
177+
178+
### expectedDocumentsCount
179+
180+
Set the number of documents expected to be detected.
181+
182+
```cpp
183+
int expectedDocumentsCount;
184+
```
185+
186+
**Value Range**
187+
188+
[0, 0x7fffffff]
189+
190+
**Default Value**
191+
192+
0
193+
158194
### reserved
159195

160196
Reserved for future use.
161197

162198
```cpp
163-
char reserved[508];
199+
char reserved[504];
164200
```

0 commit comments

Comments
 (0)