You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: programming/cplusplus/user-guide/document-scanner.md
+33-25Lines changed: 33 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,8 @@ In this guide, you will learn step by step on how to build a document scanner so
19
19
-[For Windows](#for-windows)
20
20
-[For Linux](#for-linux)
21
21
-[Include the Library](#include-the-library)
22
-
-[Initialize a Capture Vision Router Instance](#initialize-a-capture-vision-router-instance)
22
+
-[Initialize the License Key](#initialize-the-license-key)
23
+
-[Create a CaptureVisionRouter Instance](#create-a-capturevisionrouter-instance)
23
24
-[Detect and Save the Normalized Document](#detect-and-save-the-normalized-document)
24
25
-[Release the Allocated Memory](#release-the-allocated-memory)
25
26
-[Build and Run the Project](#build-and-run-the-project)
@@ -34,12 +35,14 @@ To find out whether your environment is supported, please read the [System Requi
34
35
35
36
If you haven't downloaded the SDK yet, <ahref="https://download2.dynamsoft.com/dcv/dynamsoft-capture-vision-cpp-3.0.1000.250304.zip"target="_blank">download the `C/C++ Package`</a> now and unpack the package into a directory of your choice.
36
37
38
+
> [!IMPORTANT]
37
39
> For this tutorial, we unpack it to a pseudo directory `[INSTALLATION FOLDER]`, change it to your unpacking path for the following content.
38
40
39
41
## Build Your Own Application
40
42
41
43
In this section, we'll walk through the key steps needed to build an application that capture a document from an image file.
42
44
45
+
> [!TIP]
43
46
>You can download the complete source code from [here](https://github.com/Dynamsoft/capture-vision-cpp-samples/tree/main/Samples/DocumentScanner).
44
47
45
48
### Create A New Project
@@ -86,7 +89,8 @@ In this section, we'll walk through the key steps needed to build an application
CCaptureVisionRouter* router = new CCaptureVisionRouter();
148
-
```
149
+
> [!NOTE]
150
+
> The string "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" here is a free public trial license. Note that network connection is required for this license to work. Please replace it with your own 30-day trial license.
151
+
152
+
### Create a CaptureVisionRouter Instance
153
+
154
+
```cpp
155
+
CCaptureVisionRouter* router = new CCaptureVisionRouter();
156
+
```
149
157
150
158
### Detect and Save the Normalized Document
151
159
@@ -156,6 +164,7 @@ In this section, we'll walk through the key steps needed to build an application
156
164
CCapturedResult* result = router->Capture(imageFile.c_str(), CPresetTemplate::PT_DETECT_AND_NORMALIZE_DOCUMENT);
157
165
```
158
166
167
+
> [!IMPORTANT]
159
168
> Please change the `[PATH-TO-THE-IMAGE-FILE]` to a real image file path.
160
169
161
170
2. Save the normalized result as an image file
@@ -230,6 +239,5 @@ delete router, router = NULL;
230
239
```
231
240
232
241
233
-
> Note:
234
-
>
242
+
> [!IMPORTANT]
235
243
> Please change all `[INSTALLATION FOLDER]`in above code snippet to your unpacking path.
Copy file name to clipboardExpand all lines: programming/cplusplus/user-guide/mrz-scanner.md
+86-80Lines changed: 86 additions & 80 deletions
Original file line number
Diff line number
Diff line change
@@ -41,12 +41,14 @@ To find out whether your environment is supported, please read the [System Requi
41
41
42
42
If you haven't downloaded the SDK yet, <ahref="https://download2.dynamsoft.com/dcv/dynamsoft-capture-vision-cpp-3.0.1000.250304.zip"target="_blank">download the `C/C++ Package`</a> now and unpack the package into a directory of your choice.
43
43
44
+
> [!IMPORTANT]
44
45
> For this tutorial, we unpack it to a pseudo directory `[INSTALLATION FOLDER]`, change it to your unpacking path for the following content.
45
46
46
47
## Build Your Own Application
47
48
48
49
In this section, we’ll walk through the key steps needed to build an application that reads the machine-readable zone (MRZ) from an image file.
49
50
51
+
> [!TIP]
50
52
>You can download the complete source code from [here](https://github.com/Dynamsoft/capture-vision-cpp-samples/tree/main/Samples/MRZScanner).
51
53
52
54
### Create A New Project
@@ -105,105 +107,110 @@ In this section, we’ll walk through the key steps needed to build an applicati
If this is your first time using the library, you will need to obtain a trial license key. We recommend getting your own 30-day trial license through the following modal:
142
+
143
+
{% include trialLicense.html %}
144
+
139
145
Open the `MRZScanner.cpp` file and add the following code inside the `Main` method to initialize the license for using the SDK in the application:
> The string "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" here is a free public trial license. Note that network connection is required for this license to work. Please replace it with your own 30-day trial license.
157
163
158
164
### Create a CaptureVisionRouter Instance
159
165
160
-
```cpp
161
-
CCaptureVisionRouter* router = new CCaptureVisionRouter();
162
-
```
166
+
```cpp
167
+
CCaptureVisionRouter* router = new CCaptureVisionRouter();
168
+
```
163
169
164
170
### Invoke the Capturing
165
171
166
-
```cpp
167
-
string imageFile = "[PATH-TO-THE-IMAGE-FILE]";
168
-
CCapturedResult* result = router->Capture(imageFile.c_str(), "ReadPassportAndId");
169
-
```
172
+
```cpp
173
+
string imageFile = "[PATH-TO-THE-IMAGE-FILE]";
174
+
CCapturedResult* result = router->Capture(imageFile.c_str(), "ReadPassportAndId");
175
+
```
170
176
171
-
> Please change the `[PATH-TO-THE-IMAGE-FILE]` to a real image file path.
177
+
> [!IMPORTANT]
178
+
> Please change the `[PATH-TO-THE-IMAGE-FILE]` to a real image file path.
Copy file name to clipboardExpand all lines: programming/dotnet/user-guide/mrz-scanner.md
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,10 @@ using Dynamsoft.DCP;
61
61
62
62
### Initialize the License Key
63
63
64
+
If this is your first time using the library, you will need to obtain a trial license key. We recommend getting your own 30-day trial license through the following modal:
65
+
66
+
{% include trialLicense.html %}
67
+
64
68
Open the `Program.cs` file and add the following code inside the `Main` method to initialize the license for using the SDK in the application:
> The string "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" here is a free public trial license. Note that network connection is required for this license to work. When it expires, you can request a 30-day free trial license from the <ahref="https://www.dynamsoft.com/customer/license/trialLicense?utm_source=guide&product=mrz&package=dotnet"target="_blank">Customer Portal</a>.
78
+
> The string "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" here is a free public trial license. Note that network connection is required for this license to work. Please replace it with your own 30-day trial license.
0 commit comments