Skip to content

Commit 484a216

Browse files
feat: release/v3.x/v3.1.0-beta-202601090001
A beta release for 3.1.0 to implement the DCV update and a small fix to the template regex patterns.
1 parent a59a27b commit 484a216

17 files changed

Lines changed: 356 additions & 98 deletions

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@ The simplest way to include the SDK is to use either the [**jsDelivr**](https://
3131
- jsDelivr
3232

3333
```html
34-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-mrz-scanner@3.0.4/dist/mrz-scanner.bundle.js"></script>
34+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-mrz-scanner@3.1.0-beta-202601090001/dist/mrz-scanner.bundle.js"></script>
3535
```
3636

3737
- UNPKG
3838

3939
```html
40-
<script src="https://unpkg.com/dynamsoft-mrz-scanner@3.0.4/dist/mrz-scanner.bundle.js"></script>
40+
<script src="https://unpkg.com/dynamsoft-mrz-scanner@3.1.0-beta-202601090001/dist/mrz-scanner.bundle.js"></script>
4141
```
4242

4343
When using a framework such as **React**, **Vue** or **Angular**, we recommend adding the package as a dependency using a package manager such as **npm** or **yarn**:
4444

4545
```sh
46-
npm i dynamsoft-mrz-scanner@3.0.4 -E
46+
npm i dynamsoft-mrz-scanner@3.1.0-beta-202601090001 -E
4747
# or
48-
yarn add dynamsoft-mrz-scanner@3.0.4 -E
48+
yarn add dynamsoft-mrz-scanner@3.1.0-beta-202601090001 -E
4949
```
5050

5151
> [!WARNING]
@@ -60,7 +60,7 @@ Below is the complete Hello World sample page that uses the precompiled script s
6060
<meta charset="utf-8" />
6161
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6262
<title>Dynamsoft MRZ Scanner - Hello World</title>
63-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-mrz-scanner@3.0.4/dist/mrz-scanner.bundle.js"></script>
63+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-mrz-scanner@3.1.0-beta-202601090001/dist/mrz-scanner.bundle.js"></script>
6464
</head>
6565

6666
<body>
@@ -141,7 +141,7 @@ Let's now go through the code of the Hello World sample and understand the purpo
141141
<meta charset="utf-8" />
142142
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
143143
<title>Dynamsoft MRZ Scanner - Hello World</title>
144-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-mrz-scanner@3.0.4/dist/mrz-scanner.bundle.js"></script>
144+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-mrz-scanner@3.1.0-beta-202601090001/dist/mrz-scanner.bundle.js"></script>
145145
</head>
146146

147147
<body>

dist/mrz-scanner.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mrz-scanner.bundle.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/mrz-scanner.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mrz-scanner.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/mrz-scanner.no-content-bundle.esm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mrz-scanner.template.json

Lines changed: 112 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"BaseTextLineSpecificationName": "tls-base"
9797
},
9898
{
99-
"StringRegExPattern": "([A-Z0-9<]{9}[0-9][A-Z<]{3}[0-9]{2}[0-9<]{4}[0-9][MF<][0-9]{2}[(01-12)][(01-31)][0-9][A-Z0-9<]{14}[0-9<][0-9]){(44)}",
99+
"StringRegExPattern": "([A-Z0-9<]{9}[0-9][A-Z<]{3}[0-9]{2}[0-9]{2}[0-9]{2}[0-9][MF<][0-9]{2}[0-9]{2}[0-9]{2}[0-9][A-Z0-9<]{14}[0-9<][0-9]){(44)}",
100100
"StringLengthRange": [44, 44],
101101
"BaseTextLineSpecificationName": "tls-base"
102102
}
@@ -117,7 +117,7 @@
117117
"BaseTextLineSpecificationName": "tls-base"
118118
},
119119
{
120-
"StringRegExPattern": "([A-Z0-9<]{9}[0-9][A-Z<]{3}[0-9]{2}[(01-12)][(01-31)][0-9][MF<][0-9]{2}[(01-12)][(01-31)][0-9][A-Z0-9<]{14}[A-Z0-9<]{2}){(44)}",
120+
"StringRegExPattern": "([A-Z0-9<]{9}[0-9][A-Z<]{3}[0-9]{2}[0-9]{2}[0-9]{2}[0-9][MF<][0-9]{2}[0-9]{2}[0-9]{2}[0-9][A-Z0-9<]{14}[A-Z0-9<]{2}){(44)}",
121121
"StringLengthRange": [44, 44],
122122
"BaseTextLineSpecificationName": "tls-base"
123123
}
@@ -138,7 +138,7 @@
138138
"BaseTextLineSpecificationName": "tls-base"
139139
},
140140
{
141-
"StringRegExPattern": "([A-Z0-9<]{9}[0-9][A-Z<]{3}[0-9]{2}[(01-12)][(01-31)][0-9][MF<][0-9]{2}[(01-12)][(01-31)][0-9][A-Z0-9<]{8}){(36)}",
141+
"StringRegExPattern": "([A-Z0-9<]{9}[0-9][A-Z<]{3}[0-9]{2}[0-9]{2}[0-9]{2}[0-9][MF<][0-9]{2}[0-9]{2}[0-9]{2}[0-9][A-Z0-9<]{8}){(36)}",
142142
"StringLengthRange": [36, 36],
143143
"BaseTextLineSpecificationName": "tls-base"
144144
}
@@ -159,7 +159,7 @@
159159
"BaseTextLineSpecificationName": "tls-base"
160160
},
161161
{
162-
"StringRegExPattern": "([A-Z0-9<]{9}[0-9][A-Z<]{3}[0-9]{2}[0-9<]{4}[0-9][MF<][0-9]{2}[(01-12)][(01-31)][0-9][A-Z0-9<]{8}){(36)}",
162+
"StringRegExPattern": "([A-Z0-9<]{9}[0-9][A-Z<]{3}[0-9]{2}[0-9<]{4}[0-9][MF<][0-9]{2}[0-9]{2}[0-9]{2}[0-9][A-Z0-9<]{8}){(36)}",
163163
"StringLengthRange": [36, 36],
164164
"BaseTextLineSpecificationName": "tls-base"
165165
}
@@ -180,7 +180,7 @@
180180
"BaseTextLineSpecificationName": "tls-base"
181181
},
182182
{
183-
"StringRegExPattern": "([0-9]{2}[(01-12)][(01-31)][0-9][MF<][0-9]{2}[0-9<]{4}[0-9][A-Z<]{3}[A-Z0-9<]{11}[0-9]){(30)}",
183+
"StringRegExPattern": "([0-9]{2}[0-9]{2}[0-9]{2}[0-9][MF<][0-9]{2}[0-9<]{4}[0-9][A-Z<]{3}[A-Z0-9<]{11}[0-9]){(30)}",
184184
"StringLengthRange": [30, 30],
185185
"BaseTextLineSpecificationName": "tls-base"
186186
},
@@ -206,7 +206,7 @@
206206
"BaseTextLineSpecificationName": "tls-base"
207207
},
208208
{
209-
"StringRegExPattern": "([A-Z0-9]{12}[0-9][A-Z<]{14}[0-9]{2}[(01-12)][(01-31)][0-9][MF<][0-9]){(36)}",
209+
"StringRegExPattern": "([A-Z0-9]{12}[0-9][A-Z<]{14}[0-9]{2}[0-9]{2}[0-9]{2}[0-9][MF<][0-9]){(36)}",
210210
"StringLengthRange": [36, 36],
211211
"BaseTextLineSpecificationName": "tls-base"
212212
}
@@ -227,7 +227,7 @@
227227
"BaseTextLineSpecificationName": "tls-base"
228228
},
229229
{
230-
"StringRegExPattern": "(FACHE[0-9]{12}(<<)[0-9]{2}[(01-12)][(01-31)][<]{5}){(30)}",
230+
"StringRegExPattern": "(FACHE[0-9]{12}(<<)[0-9]{2}[0-9]{2}[0-9]{2}[<]{5}){(30)}",
231231
"StringLengthRange": [30, 30],
232232
"BaseTextLineSpecificationName": "tls-base"
233233
},
@@ -271,7 +271,21 @@
271271
},
272272
{
273273
"Section": "ST_TEXT_LINE_LOCALIZATION",
274-
"ImageParameterName": "ip-mrz"
274+
"ImageParameterName": "ip-mrz",
275+
"StageArray": [
276+
{
277+
"Stage": "SST_LOCALIZE_TEXT_LINES",
278+
"LocalizationModes": [
279+
{
280+
"Mode": "LM_NEURAL_NETWORK",
281+
"ModelNameArray": ["MRZLocalization"]
282+
},
283+
{
284+
"Mode": "LM_GENERAL"
285+
}
286+
]
287+
}
288+
]
275289
},
276290
{
277291
"Section": "ST_TEXT_LINE_RECOGNITION",
@@ -301,7 +315,21 @@
301315
},
302316
{
303317
"Section": "ST_TEXT_LINE_LOCALIZATION",
304-
"ImageParameterName": "ip-mrz"
318+
"ImageParameterName": "ip-mrz",
319+
"StageArray": [
320+
{
321+
"Stage": "SST_LOCALIZE_TEXT_LINES",
322+
"LocalizationModes": [
323+
{
324+
"Mode": "LM_NEURAL_NETWORK",
325+
"ModelNameArray": ["MRZLocalization"]
326+
},
327+
{
328+
"Mode": "LM_GENERAL"
329+
}
330+
]
331+
}
332+
]
305333
},
306334
{
307335
"Section": "ST_TEXT_LINE_RECOGNITION",
@@ -331,7 +359,21 @@
331359
},
332360
{
333361
"Section": "ST_TEXT_LINE_LOCALIZATION",
334-
"ImageParameterName": "ip-mrz"
362+
"ImageParameterName": "ip-mrz",
363+
"StageArray": [
364+
{
365+
"Stage": "SST_LOCALIZE_TEXT_LINES",
366+
"LocalizationModes": [
367+
{
368+
"Mode": "LM_NEURAL_NETWORK",
369+
"ModelNameArray": ["MRZLocalization"]
370+
},
371+
{
372+
"Mode": "LM_GENERAL"
373+
}
374+
]
375+
}
376+
]
335377
},
336378
{
337379
"Section": "ST_TEXT_LINE_RECOGNITION",
@@ -368,7 +410,21 @@
368410
},
369411
{
370412
"Section": "ST_TEXT_LINE_LOCALIZATION",
371-
"ImageParameterName": "ip-mrz"
413+
"ImageParameterName": "ip-mrz",
414+
"StageArray": [
415+
{
416+
"Stage": "SST_LOCALIZE_TEXT_LINES",
417+
"LocalizationModes": [
418+
{
419+
"Mode": "LM_NEURAL_NETWORK",
420+
"ModelNameArray": ["MRZLocalization"]
421+
},
422+
{
423+
"Mode": "LM_GENERAL"
424+
}
425+
]
426+
}
427+
]
372428
},
373429
{
374430
"Section": "ST_TEXT_LINE_RECOGNITION",
@@ -398,7 +454,21 @@
398454
},
399455
{
400456
"Section": "ST_TEXT_LINE_LOCALIZATION",
401-
"ImageParameterName": "ip-mrz"
457+
"ImageParameterName": "ip-mrz",
458+
"StageArray": [
459+
{
460+
"Stage": "SST_LOCALIZE_TEXT_LINES",
461+
"LocalizationModes": [
462+
{
463+
"Mode": "LM_NEURAL_NETWORK",
464+
"ModelNameArray": ["MRZLocalization"]
465+
},
466+
{
467+
"Mode": "LM_GENERAL"
468+
}
469+
]
470+
}
471+
]
402472
},
403473
{
404474
"Section": "ST_TEXT_LINE_RECOGNITION",
@@ -434,7 +504,21 @@
434504
},
435505
{
436506
"Section": "ST_TEXT_LINE_LOCALIZATION",
437-
"ImageParameterName": "ip-mrz"
507+
"ImageParameterName": "ip-mrz",
508+
"StageArray": [
509+
{
510+
"Stage": "SST_LOCALIZE_TEXT_LINES",
511+
"LocalizationModes": [
512+
{
513+
"Mode": "LM_NEURAL_NETWORK",
514+
"ModelNameArray": ["MRZLocalization"]
515+
},
516+
{
517+
"Mode": "LM_GENERAL"
518+
}
519+
]
520+
}
521+
]
438522
},
439523
{
440524
"Section": "ST_TEXT_LINE_RECOGNITION",
@@ -469,7 +553,21 @@
469553
},
470554
{
471555
"Section": "ST_TEXT_LINE_LOCALIZATION",
472-
"ImageParameterName": "ip-mrz"
556+
"ImageParameterName": "ip-mrz",
557+
"StageArray": [
558+
{
559+
"Stage": "SST_LOCALIZE_TEXT_LINES",
560+
"LocalizationModes": [
561+
{
562+
"Mode": "LM_NEURAL_NETWORK",
563+
"ModelNameArray": ["MRZLocalization"]
564+
},
565+
{
566+
"Mode": "LM_GENERAL"
567+
}
568+
]
569+
}
570+
]
473571
},
474572
{
475573
"Section": "ST_TEXT_LINE_RECOGNITION",

0 commit comments

Comments
 (0)