Skip to content

Commit 4ca7200

Browse files
Merge pull request #81 from dynamsoft-docs/preview
update to internal commit c2ec3b5f
2 parents 8f0af46 + 94b9d56 commit 4ca7200

File tree

32 files changed

+418
-54
lines changed

32 files changed

+418
-54
lines changed

_includes/sidelist-programming/programming-cpp.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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-type.html" class="otherLinkColour">CCodeType</a></li>
164165
<li><a href="{{ site.dcp_cpp_api }}code-parser-module.html" class="otherLinkColour">CCodeParserModule</a></li>
165166
<li><a href="{{ site.dcp_cpp_api }}parsed-result-item.html" class="otherLinkColour">CParsedResultItem</a></li>
166167
<li><a href="{{ site.dcp_cpp_api }}parsed-result.html" class="otherLinkColour">CParsedResult</a></li>

_includes/sidelist-programming/programming-dotnet.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@
146146
{%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath lang=include.lang targetRelativePath="sidelist-code-types.html" -%}
147147
<li><a>Classes</a>
148148
<ul>
149+
<li><a href="{{ site.dcp_dotnet_api }}code-type.html" class="otherLinkColour">CodeType</a></li>
149150
<li><a href="{{ site.dcp_dotnet_api }}code-parser-module.html" class="otherLinkColour">CodeParserModule</a></li>
150151
<li><a href="{{ site.dcp_dotnet_api }}parsed-result-item.html" class="otherLinkColour">ParsedResultItem</a></li>
151152
<li><a href="{{ site.dcp_dotnet_api }}parsed-result.html" class="otherLinkColour">ParsedResult</a></li>

_includes/sidelist-programming/programming-python.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@
151151
</li>
152152
<li><a>Enums</a>
153153
<ul>
154+
<li><a href="{{ site.dcp_python_api }}enum-code-type.html" class="otherLinkColour">EnumCodeType</a></li>
154155
<li><a href="{{ site.dcp_python_api }}enum-mapping-status.html" class="otherLinkColour">EnumMappingStatus</a></li>
155156
<li><a href="{{ site.dcp_python_api }}enum-validation-status.html" class="otherLinkColour">EnumValiadtionStatus</a></li>
156157
</ul>

_includes/sidelist-programming/sidelist-parameters-organization.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,8 @@
440440
<li><a href="{{ site.dcvb_parameters_reference }}barcode-format-specification/enable-qr-code-model-1.html" class="otherLinkColour">EnableQRCodeModel1</a></li>
441441
<li><a href="{{ site.dcvb_parameters_reference }}barcode-format-specification/find-uneven-module-barcode.html" class="otherLinkColour">FindUnevenModuleBarcode</a></li>
442442
<li><a href="{{ site.dcvb_parameters_reference }}barcode-format-specification/head-module-ratio.html" class="otherLinkColour">HeadModuleRatio</a></li>
443+
<li><a href="{{ site.dcvb_parameters_reference }}barcode-format-specification/include-implied-ai01.html" class="otherLinkColour">IncludeImpliedAI01</a></li>
444+
<li><a href="{{ site.dcvb_parameters_reference }}barcode-format-specification/include-trailing-check-digit.html" class="otherLinkColour">IncludeTrailingCheckDigit</a></li>
443445
<li><a href="{{ site.dcvb_parameters_reference }}barcode-format-specification/min-quiet-zone-width.html" class="otherLinkColour">MinQuietZoneWidth</a></li>
444446
<li><a href="{{ site.dcvb_parameters_reference }}barcode-format-specification/min-ratio-of-barcode-zone-width-to-height.html" class="otherLinkColour">MinRatioOfBarcodeZoneWidthToHeight</a></li>
445447
<li><a href="{{ site.dcvb_parameters_reference }}barcode-format-specification/min-result-confidence.html" class="otherLinkColour">MinResultConfidence</a></li>

assets/js/dcvServerVersionSearch.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
[
2+
{
3+
"version": "3.0.4000",
4+
"matchVersion": {
5+
"cpp": "11.0.4000",
6+
"dotnet": "11.0.4000",
7+
"python": "11.0.4000"
8+
}
9+
},
210
{
311
"version": "3.0.3000",
412
"matchVersion": {

programming/cplusplus/api-reference/capture-vision-router/auxiliary-classes/captured-result.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -267,22 +267,6 @@ Returns a pointer to the CProcessedDocumentResult object containing the processe
267267

268268
Do not forget to release the memory pointed to by the returned pointer.
269269

270-
### GetNormalizedImagesResult
271-
272-
Gets the normalized images items from the `CCapturedResult`.
273-
274-
```cpp
275-
ddn::CNormalizedImagesResult* GetNormalizedImagesResult() const
276-
```
277-
278-
**Return value**
279-
280-
Returns a pointer to the CNormalizedImagesResult object containing the normalized images items.
281-
282-
**Remarks**
283-
284-
Do not forget to release the memory pointed to by the returned pointer.
285-
286270
### GetParsedResult
287271

288272
Gets the parsed result items from the `CCapturedResult`.

programming/cplusplus/api-reference/core/enum-error-code.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ layout: default-layout
33
title: ErrorCode - Dynamsoft Core Enumerations
44
description: The enumeration ErrorCode of Dynamsoft Core describes all error codes.
55
keywords: Error code
6-
needGenerateH3Content: true
7-
needAutoGenerateSidebar: true
8-
noTitleIndex: true
9-
breadcrumbText: ErrorCode
106
codeAutoHeight: true
117
---
128

@@ -138,6 +134,8 @@ typedef enum ErrorCode
138134
EC_PDF_LICENSE_NOT_FOUND = -10079,
139135
/**The rectangle is invalid.*/
140136
EC_RECT_INVALID = -10080,
137+
/*The template version is incompatible. Please use a compatible template.*/
138+
EC_TEMPLATE_VERSION_INCOMPATIBLE = -10081,
141139
/** -20000~-29999: DLS license error code. */
142140
/** No license. */
143141
EC_NO_LICENSE = -20000,
@@ -157,6 +155,10 @@ typedef enum ErrorCode
157155
EC_TRIAL_LICENSE = -20010,
158156
/**Online license validation failed due to network issues. Using cached license information for validation*/
159157
EC_LICENSE_CACHE_USED = -20012,
158+
/*License authentication failed: quota exceeded.*/
159+
EC_LICENSE_AUTH_QUOTA_EXCEEDED = -20013,
160+
/**License restriction: the number of results has exceeded the allowed limit.*/
161+
EC_LICENSE_RESULTS_LIMIT_EXCEEDED = -20014,
160162
/** Failed to reach License Server. */
161163
EC_FAILED_TO_REACH_DLS = -20200,
162164
/** -30000~-39999: DBR error code. */

programming/cplusplus/api-reference/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ needAutoGenerateSidebar: false
133133

134134
### Classes
135135

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

programming/cplusplus/api-reference/utility/image-io.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,39 @@ class CImageIO
2424
2525
| Method | Description |
2626
|----------------------|-------------|
27+
| [`ReadFromBase64String`](#readfrombase64string) | Reads an image from a base64 encoded string. |
2728
| [`ReadFromFile`](#readfromfile) | Reads an image from a file. |
2829
| [`ReadFromMemory`](#readfrommemory) | Reads an image from a file in memory. |
30+
| [`SaveToBase64String`](#savetobase64string) | Saves an image to a base64 encoded string. |
2931
| [`SaveToFile`](#savetofile) | Saves an image to a file. |
3032
| [`SaveToMemory`](#savetomemory) | Saves an image to a file in memory. |
3133
34+
### ReadFromBase64String
35+
36+
Reads an image from a base64 encoded string.
37+
38+
```cpp
39+
CImageData* ReadFromBase64String(const char* base64String, int* errorCode = NULL);
40+
```
41+
42+
**Parameters**
43+
44+
`[in] base64String` A base64 encoded string that represents an image.
45+
46+
`[out] errorCode` The error code.
47+
48+
**Return value**
49+
50+
Returns a pointer to a `CImageData` object representing the image if succeeds, nullptr otherwise.
51+
52+
**Remarks**
53+
54+
If the file format is gif, pdf or tiff, we read the first page of the image file. The caller is responsible for freeing the memory allocated for the image.
55+
56+
**See Also**
57+
58+
[CImageData]({{ site.dcvb_cpp_api }}core/basic-structures/image-data.html)
59+
3260
### ReadFromFile
3361

3462
Reads an image from a file.
@@ -69,6 +97,9 @@ CImageData* ReadFromMemory(const unsigned char* imageFileBytes, int imageFileByt
6997

7098
`[in] imageFileBytesLength` The length of the image file in bytes.
7199

100+
`[out] pErrorCode` The The error code.
101+
102+
72103
**Return value**
73104

74105
Returns a pointer to a `CImageData` object representing the image if succeeds, nullptr otherwise.
@@ -81,6 +112,38 @@ If the file format is gif, pdf or tiff, we read the first page of the image file
81112

82113
[CImageData]({{ site.dcvb_cpp_api }}core/basic-structures/image-data.html)
83114

115+
### SaveToBase64String
116+
117+
Saves an image to a base64 encoded string.
118+
119+
```cpp
120+
int SaveToBase64String(const CImageData* imageData, ImageFileFormat imageFormat, char** base64String);
121+
```
122+
123+
**Parameters**
124+
125+
`[in] imageData` A pointer to the image data to be saved.
126+
127+
`[in] imageFormat` The image file format to be saved.
128+
129+
`[in] base64String` A base64 encoded string that represents an image. The string is allocated by the SDK and must be freed by calling CCoreModule::FreeBytes.
130+
131+
**Return value**
132+
133+
Returns an integer indicating the success of the operation. 0 indicates success, while a non-zero value indicates an error occurred.
134+
135+
| Error Code | Value | Description |
136+
| :--------- | :---- | :---------- |
137+
| EC_NULL_POINTER | -10002 | The ImageData object is null. |
138+
| EC_IMGAE_DATA_INVALID | -10069 | The input ImageData object contains invalid parameter(s). |
139+
140+
**See Also**
141+
142+
[CImageData]({{ site.dcvb_cpp_api }}core/basic-structures/image-data.html)
143+
144+
[ImageFileFormat]({{ site.dcvb_cpp_api }}core/enum-image-file-format.html)
145+
146+
84147
### SaveToFile
85148
86149
Saves an image to a file.

programming/cplusplus/api-reference/utility/image-processor.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class CImageProcessor
3030
| [`ConvertToBinaryLocal`](#converttobinarylocal) | Converts the grayscale image to binary image using local (adaptive) binarization. |
3131
| [`ConvertToGray`](#converttogray) | Converts colour image to grayscale. |
3232
| [`CropImage`](#cropimage) | Crops an image. |
33+
| [`CropAndDeskewImage`](#cropanddeskewimage) | Crops and deskews a region from the input image based on the specified quadrilateral. |
3334
| [`FilterImage`](#filterimage) | Applies a specified image filter to an input image and returns the filtered result. |
3435
3536
### AdjustBrightness
@@ -158,6 +159,8 @@ Crops an image.
158159

159160
```cpp
160161
CImageData* CropImage(const CImageData* pImageData, const CRect& rect, int* pErrorCode = NULL)
162+
163+
//Announced as deprecated. Use CropAndDeskewImage instead.
161164
CImageData* CropImage(const CImageData* pImageData, const CQuadrilateral& quad, int* pErrorCode = NULL)
162165
```
163166
@@ -167,7 +170,7 @@ CImageData* CropImage(const CImageData* pImageData, const CQuadrilateral& quad,
167170
168171
`[in] rect` The rectangle to be cropped.
169172
170-
`[in] quads` The quadrilateral to be cropped.
173+
`[in] quad` The quadrilateral to be cropped.
171174
172175
`[out] pErrorCode` The error code.
173176
@@ -183,6 +186,44 @@ Returns a pointer to a `CImageData` object representing the cropped image.
183186
184187
[CQuadrilateral]({{ site.dcvb_cpp_api }}core/basic-structures/quadrilateral.html)
185188
189+
### CropAndDeskewImage
190+
191+
Crops and deskews a region from the input image based on the specified quadrilateral.
192+
193+
```cpp
194+
CImageData* CropAndDeskewImage(const CImageData* imageData, const CQuadrilateral& quad, int dstWidth = 0, int dstHeight = 0, int padding = 0, int* errorCode = NULL);
195+
```
196+
197+
**Parameters**
198+
199+
`[in] imageData` A pointer to the source image to be cropped and deskewed.
200+
201+
`[in] quad` A quadrilateral defining the region of interest to extract.
202+
203+
`[in] dstWidth` (Optional) The width of the output image. If set to 0, the width and height will be automatically calculated.
204+
205+
`[in] dstHeight` (Optional) The height of the output image. If set to 0, the width and height will be automatically calculated.
206+
207+
`[in] padding` (Optional) Extra padding (in pixels) applied to expand the boundaries of the extracted region. Default is 0.
208+
209+
`[out] errorCode` The error code.
210+
211+
**Return value**
212+
213+
Returns a pointer to a `CImageData` object representing the cropped image.
214+
215+
**Remarks**
216+
217+
The caller is responsible for freeing the memory allocated for the cropped image.
218+
The function will automatically calculate the perspective transform matrix and use it to crop the image.
219+
If the specified quadrilateral exceeds the image boundaries, white will be used to fill the exceeding area.
220+
221+
**See Also**
222+
223+
[CImageData]({{ site.dcvb_cpp_api }}core/basic-structures/image-data.html)
224+
225+
[CQuadrilateral]({{ site.dcvb_cpp_api }}core/basic-structures/quadrilateral.html)
226+
186227
### FilterImage
187228

188229
Applies a specified image filter to an input image and returns the filtered result.

0 commit comments

Comments
 (0)