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
{{ message }}
This repository was archived by the owner on Apr 25, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+22-22Lines changed: 22 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,4 @@
1
1
<!--The original doc is hosted here => https://github.com/dynamsoft-docs/label-recognition-docs/blob/master/programming/javascript/user-guide.md -->
2
-
3
2
# Dynamsoft Label Recognizer for Your Website
4
3
5
4
Add the capability of reading passport MRZs, ID cards, VIN numbers, and various other fixed text fields in your web application with just a few lines of code.
@@ -44,8 +43,8 @@ The complete code of the "MRZ Reading" example is shown below
<atarget="_blank"href="https://jsfiddle.net/DynamsoftTeam/kc35htxd/"title="Run via JSFiddle">
103
-
<img src="https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/jsfiddle.svg" alt="Run via JSFiddle" width="20" height="20" style="width:20px;height:20px;">
102
+
<img src="https://cdn.jsdelivr.net/npm/simple-icons@3.2.0/icons/jsfiddle.svg" alt="Run via JSFiddle" width="20" height="20" style="width:20px;height:20px;">
104
103
</a>
105
104
</p>
106
105
@@ -125,12 +124,13 @@ The complete code of the "MRZ Reading" example is shown below
125
124
>|`MRZ`| For MRZ (machine-readable zone) recognition. |
126
125
>|`passportMRZ`| For passport MRZ recognition. |
127
126
>|`visaMRZ`| For Visa (Country not Credit Card) MRZ recognition. |
127
+
>|`idcardMRZ`| For ID card MRZ recognition. |
128
128
>|`VIN`| For VIN (vehicle identification number) recognition. |
129
129
>|`VIN_NA`| For North American VIN (vehicle identification number) recognition. |
130
130
>
131
131
> When recognizing from video input, add the prefix "video-" for a slightly different template optimized for continuous frame recognition. For example, use `video-passportMRZ` to read the MRZ on passports with a camera.
132
132
133
-
*`onMRZRead`: This event is only used with one of the templates "MRZ", "passportMRZ"and "visaMRZ" (similarly, "onVINRead" is only used with either "VIN" or "VIN_NA"). It is triggered each time the SDK has identified and finished the recognition of a MRZ zone. The `results` object contains 2 or 3 lines of text results corresponding to the 2 or 3 lines in the MRZ. In this example, we simply print the results to the browser console.
133
+
*`onMRZRead`: This event is only used with one of the templates "MRZ", "passportMRZ", "visaMRZ" and "idcardMRZ" (similarly, "onVINRead" is only used with either "VIN" or "VIN_NA"). It is triggered each time the SDK has identified and finished the recognition of a MRZ zone. The `results` object contains 2 or 3 lines of text results corresponding to the 2 or 3 lines in the MRZ. In this example, we simply print the results to the browser console.
134
134
135
135
> The events `onImageRead` and `onUniqueRead` are used in the code but they are not required. You can compare the results returned in the 3 events and see what the differences are.
136
136
@@ -158,7 +158,7 @@ If the test doesn't go as expected, you can [contact us](https://www.dynamsoft.c
158
158
159
159
### Check out the official sample for MRZ reading
160
160
161
-
You can also try the official sample for MRZ reading ([test in Github](https://dynamsoft.github.io/label-recognizer-javascript-samples/2.use-case/2.mrz-read-and-parse/) or [check the code](https://github.com/Dynamsoft/label-recognizer-javascript-samples/tree/main/2.use-case/2.mrz-read-and-parse)). This sample also demonstrates how to parse the MRZ text into meaningful fields.
161
+
You can also try the official sample for MRZ reading ([test in Github](https://dynamsoft.github.io/label-recognizer-javascript-samples/use-case/mrz-read-and-parse/) or [check the code](https://github.com/Dynamsoft/label-recognizer-javascript-samples/tree/main/use-case/mrz-read-and-parse)). This sample also demonstrates how to parse the MRZ text into meaningful fields.
162
162
163
163
## Building your own page
164
164
@@ -173,15 +173,15 @@ The simplest way to include the SDK is to use either the [jsDelivr](https://jsde
In some cases, a different camera might be required instead of the default one. Also, a different resolution might work better. To change the camera or the resolution, we use the `CameraEnhancer` object. Learn more [here](https://www.dynamsoft.com/camera-enhancer/docs/programming/javascript/api-reference/camera-control.html?ver=3.0.1&utm_source=github&product=dlr&package=js).
304
+
In some cases, a different camera might be required instead of the default one. Also, a different resolution might work better. To change the camera or the resolution, we use the `CameraEnhancer` object. Learn more [here](https://www.dynamsoft.com/camera-enhancer/docs/programming/javascript/api-reference/camera-control.html?ver=3.2.0&utm_source=github&product=dlr&package=js).
305
305
306
306
```javascript
307
307
// The following lines set which camera and what resolution to use.
@@ -471,7 +471,7 @@ DLR requires the following features to work:
471
471
472
472
*`MediaDevices`/`getUserMedia`
473
473
474
-
This API is only required for in-browser video streaming. If a browser does not support this API, the [Single Frame Mode](https://www.dynamsoft.com/barcode-reader/programming/javascript/api-reference/BarcodeScanner.html?ver=9.2.12&utm_source=github#singleframemode) will be used automatically. If the API exists but doesn't work correctly, the Single Frame Mode can be used as an alternative way to access the camera.
474
+
This API is only required for in-browser video streaming.
475
475
476
476
*`getSettings`
477
477
@@ -496,7 +496,7 @@ Apart from the browsers, the operating systems may impose some limitations of th
496
496
497
497
## Release Notes
498
498
499
-
Learn about what are included in each release at [https://www.dynamsoft.com/label-recognition/docs/programming/javascript/release-notes/?ver=latest](https://www.dynamsoft.com/label-recognition/docs/programming/javascript/release-notes/?ver=latest).
499
+
Learn about what are included in each release at [https://www.dynamsoft.com/label-recognition/docs/web/programming/javascript/release-notes/?ver=latest](https://www.dynamsoft.com/label-recognition/docs/web/programming/javascript/release-notes/?ver=latest).
0 commit comments