Skip to content

Commit 6dccc5a

Browse files
committed
feat: add faq for mrz
1 parent a152b58 commit 6dccc5a

15 files changed

+367
-8
lines changed

general/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
layout: default-layout
3-
title: General FAQ - Dynamsoft Barcode Reader FAQ
3+
title: General FAQ
44
keywords: faq, general, dbr, dynamsoft, barcode reader
5-
description: Dynamsoft Barcode Reader FAQ - General
5+
description: Dynamsoft Capture Vision FAQ - General
66
needAutoGenerateSidebar: false
77
noTitleIndex: true
88
---
99

10-
# Dynamsoft Barcode Reader General FAQ
10+
# General FAQ
1111

12-
Welcome to the FAQ for Dynamsoft Barcode Reader. Use the links below to find answers to common questions and configuration guidance.
12+
Please use the links below to find answers to common questions and configuration guidance.
1313

1414
- [How to avoid incorrect barcode results?](avoid-incorrect-barcode-results.html)
1515
- [How to filter incorrect results with the barcode result length?](avoid-incorrect-results.html)

license/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
layout: default-layout
3-
title: License FAQ - Dynamsoft Barcode Reader FAQ
3+
title: License FAQ
44
keywords: faq, license, dbr, dynamsoft, barcode reader, configuration
5-
description: Dynamsoft Barcode Reader FAQ - License
5+
description: Dynamsoft Capture Vision FAQ - License
66
needAutoGenerateSidebar: false
77
noTitleIndex: true
88
---
99

10-
# Dynamsoft Barcode Reader General FAQ
10+
# License FAQ
1111

12-
Welcome to the FAQ for Dynamsoft Barcode Reader License. Use the links below to find answers to common questions and configuration guidance.
12+
Please use the links below to find answers to common questions and configuration guidance.
1313

1414
- [Does DBR support PDF?](dbr-supports-pdf.html)
1515
- [How to ensure no overuse of license?](ensure-no-overuse.html)

mrz-scanner/data-validation.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
layout: default-layout
3+
title: Data Validation of Decoded Results - MRZ Scanner JS FAQs
4+
keywords: Dynamsoft MRZ Scanner, FAQ, MRZ, validation, check digit, client-side, decoded results
5+
description: Does the MRZ Scanner perform any data validation on the decoded results? - MRZ Scanner JS FAQs.
6+
needAutoGenerateSidebar: true
7+
---
8+
9+
# Does the MRZ Scanner perform any data validation on the decoded results?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
No. The Dynamsoft MRZ Scanner performs image capture, enhancement, and MRZ parsing entirely on the client device, but it **does not validate** the decoded fields or their contents.
14+
15+
If your workflow requires additional validation (such as verifying check digits), your application must implement these checks after obtaining the parsed MRZ data.
16+
17+
---
18+
19+
> 💡 **Note**:
20+
> Validation logic (e.g., for check digits or document integrity) should be implemented by your application as needed.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
layout: default-layout
3+
title: MRZ Code Orientation - MRZ Scanner JS FAQs
4+
keywords: Dynamsoft MRZ Scanner, FAQ, MRZ, orientation, rotated code, readability
5+
description: Does the orientation of the MRZ code matter? - MRZ Scanner JS FAQs.
6+
needAutoGenerateSidebar: true
7+
---
8+
9+
# Does the orientation of the MRZ code matter?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
Yes. The MRZ code must be presented in the correct orientation—just like regular readable text. Rotated MRZ codes are **not** supported by the scanner.
14+
15+
---
16+
17+
| **Requirement** | **Supported** |
18+
|--------------------------|:-------------:|
19+
| Correct orientation | Yes |
20+
| Rotated orientation | No |
21+
22+
---
23+
24+
> 💡 **Note**:
25+
> Always ensure the MRZ code is upright and aligned properly to guarantee reliable scanning and accurate results.

mrz-scanner/editing-results.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
layout: default-layout
3+
title: Editing Parsed MRZ Results - MRZ Scanner JS FAQs
4+
keywords: Dynamsoft MRZ Scanner, FAQ, edit MRZ result, allowResultEditing, MRZResultViewConfig, result correction
5+
description: Can users edit the parsed MRZ results? - MRZ Scanner JS FAQs.
6+
needAutoGenerateSidebar: true
7+
---
8+
9+
# Can users edit the parsed MRZ results?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
Yes. The [`MRZResultViewConfig`](https://www.dynamsoft.com/mrz-scanner/docs/web/api/mrz-scanner.html#mrzresultviewconfig) interface includes an `allowResultEditing` property (default: `false`) that enables editing of the parsed MRZ fields. When set to `true`, the result view will display the MRZ data in an editable format, allowing users to correct any errors before proceeding.
14+
15+
For example, to allow result editing:
16+
17+
```js
18+
const mrzScanner = new Dynamsoft.MRZScanner({
19+
license: "YOUR_LICENSE_KEY",
20+
resultViewConfig: {
21+
allowResultEditing: true, // default: false
22+
showOriginalImage: true, // default: true
23+
}
24+
});
25+
````
26+
27+
---
28+
29+
| **Feature** | **Property** | **Default** |
30+
| ----------------- | -------------------- | ----------- |
31+
| Allow result edit | `allowResultEditing` | `false` |
32+
33+
---
34+
35+
> 💡 **Note**:
36+
> You may choose to allow the user to edit the result fields after cross-checking them with the info present on the document itself by displaying the original document with `showOriginalImage: true`.

mrz-scanner/handling-results.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
layout: default-layout
3+
title: Handling Scanned Results - MRZ Scanner JS FAQs
4+
keywords: Dynamsoft MRZ Scanner, FAQ, handle result, onDone, resultViewConfig, MRZResult, callback
5+
description: How do I handle the scanned results in my application? - MRZ Scanner JS FAQs.
6+
needAutoGenerateSidebar: true
7+
---
8+
9+
# How do I handle the scanned results in my application?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
To handle scanned results, provide an `onDone` callback within [`MRZResultViewConfig`](https://www.dynamsoft.com/mrz-scanner/docs/web/api/mrz-scanner.html#mrzresultviewconfig). When the user clicks the Done button, your callback receives an [`MRZResult`](https://www.dynamsoft.com/mrz-scanner/docs/web/api/mrz-scanner.html#mrzresult) object, which includes status codes, the parsed data, and an image of the MRZ. Your application can then process the fields as needed, such as logging or submitting data.
14+
15+
For example, to log the first name and status code:
16+
17+
```js
18+
const mrzScanner = new Dynamsoft.MRZScanner({
19+
license: "YOUR_LICENSE_KEY",
20+
resultViewConfig: {
21+
onDone: (result) => {
22+
// result: MRZResult
23+
console.log("First name:", result.data.firstName);
24+
console.log("Status code:", result.status.code);
25+
}
26+
}
27+
});
28+
````
29+
30+
---
31+
32+
| **Callback** | **Location** | **Description** |
33+
| ------------ | ------------------ | ------------------------------------------------ |
34+
| `onDone` | `resultViewConfig` | Called when user clicks Done; receives MRZResult |
35+
36+
---
37+
38+
> 💡 **Note**:
39+
> The `MRZResult` object provides the decoded fields, the scan status, and the captured MRZ image. You can implement custom workflows or validation based on these values.

mrz-scanner/index.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
layout: default-layout
3+
title: MRZ Scanner FAQ
4+
keywords: faq, license, mrz, dynamsoft, mrz scanner, configuration
5+
description: Dynamsoft MRZ Scanner FAQ
6+
needAutoGenerateSidebar: false
7+
noTitleIndex: true
8+
---
9+
10+
# MRZ Scanner FAQ
11+
12+
Please use the links below to find answers to common questions and configuration guidance.
13+
14+
- [What MRZ formats does the Dynamsoft MRZ Scanner support?](mrz-formats-supported.html)
15+
- [Does the MRZ Scanner require HTTPS, and which browsers are supported?](is-https-required.html)
16+
- [Can the MRZ Scanner process static images or PDFs, or does it only work with a live camera? ](static-image-and-pdf-support.html)
17+
- [Does the MRZ Scanner perform any data validation on the decoded results?](data-validation.html)
18+
- [How do I restrict scanning to specific document types (e.g., only passports)?](restrict-to-specific-document-types.html)
19+
- [How can I customize the scanner UI (hide the scan guide, format selector, upload button, etc.)?](ui-customization.html)
20+
- [Can users edit the parsed MRZ results?](editing-results.html)
21+
- [How do I handle the scanned results in my application?](handling-results.html)
22+
- [Are there any performance options to improve accuracy or speed?](performance-optimization.html)
23+
- [What is the recommended font height to ensure reliable MRZ readability?](recommended-font-height.html)
24+
- [Does the orientation of the MRZ code matter?](does-mrz-orientation-matter.html)

mrz-scanner/is-https-required.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
layout: default-layout
3+
title: HTTPS Requirement and Browser Support - MRZ Scanner JS FAQs
4+
keywords: Dynamsoft MRZ Scanner, FAQ, HTTPS, browser support, secure context, WebAssembly, Chrome, Firefox, Safari, Edge
5+
description: Does the Dynamsoft MRZ Scanner require HTTPS and which browsers are supported? - MRZ Scanner JS FAQs.
6+
needAutoGenerateSidebar: true
7+
---
8+
9+
# Does the MRZ Scanner require HTTPS, and which browsers are supported?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
Yes. The Dynamsoft MRZ Scanner JavaScript edition requires your application to be served over **HTTPS** due to browser restrictions on camera access and licensing requirements. The only exceptions are `localhost` and local file paths during development.
14+
15+
In addition, the scanner depends on several modern browser features, including **WebAssembly**, **Blob**, **URL/createObjectURL**, and **Web Workers**.
16+
17+
---
18+
19+
## Supported Browsers
20+
21+
| **Browser** | **Minimum Version** |
22+
|--------------|---------------------|
23+
| Chrome | 78 |
24+
| Firefox | 79 |
25+
| Safari | 15 |
26+
| Edge | 92 |
27+
28+
---
29+
30+
> 💡 **Note**:
31+
> Camera access and licensing will not function in unsecured (HTTP) environments. For production deployments, always use HTTPS.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
layout: default-layout
3+
title: Supported MRZ Formats - MRZ Scanner JS FAQs
4+
keywords: Dynamsoft MRZ Scanner, FAQ, MRZ, Machine Readable Zone, ICAO, TD1, TD2, TD3, passport, ID
5+
description: What MRZ formats does the Dynamsoft MRZ Scanner support? - MRZ Scanner JS FAQs.
6+
needAutoGenerateSidebar: true
7+
---
8+
9+
# What MRZ formats does the Dynamsoft MRZ Scanner support?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
The Dynamsoft MRZ Scanner JavaScript edition follows the ICAO (International Civil Aviation Organization) Machine Readable Travel Documents (MRTD) standard and supports three major MRZ (Machine Readable Zone) formats:
14+
15+
---
16+
17+
| **Document Type** | **Format** | **Description** |
18+
|------------------------------|----------------------------------|-----------------------------------------------|
19+
| **Passport (TD3)** | 2 lines × 44 characters each | Standard for passports |
20+
| **ID Card (TD1)** | 3 lines × 30 characters each | Used by many national ID cards |
21+
| **ID Card (TD2)** | 2 lines × 36 characters each | Used by some national ID cards and visas |
22+
23+
---
24+
25+
These formats cover the MRZ for passports and most national ID cards worldwide.
26+
27+
> 💡 **Note**:
28+
> The MRZ Scanner is designed to recognize MRZ zones that conform to the ICAO specifications for TD1, TD2, and TD3 document types.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
layout: default-layout
3+
title: Performance Options for Accuracy and Speed - MRZ Scanner JS FAQs
4+
keywords: Dynamsoft MRZ Scanner, FAQ, performance, accuracy, speed, multi frame cross filter, enableMultiFrameCrossFilter
5+
description: Are there any performance options to improve accuracy or speed? - MRZ Scanner JS FAQs.
6+
needAutoGenerateSidebar: true
7+
---
8+
9+
# Are there any performance options to improve accuracy or speed?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
Yes. The scanner uses a multi-frame result cross filter to enhance accuracy. This filter is enabled by default, which helps reduce recognition errors by cross-verifying results across multiple frames. In [`MRZScannerViewConfig`](https://www.dynamsoft.com/mrz-scanner/docs/web/api/mrz-scanner.html#mrzscannerviewconfig), you can disable it to increase scanning speed, though this may slightly reduce accuracy.
14+
15+
To disable the cross filter:
16+
17+
```js
18+
const mrzScanner = new Dynamsoft.MRZScanner({
19+
license: "YOUR_LICENSE_KEY",
20+
scannerViewConfig: {
21+
enableMultiFrameCrossFilter: false // default: false
22+
}
23+
});
24+
````
25+
26+
---
27+
28+
| **Option** | **Property** | **Default** | **Effect** |
29+
| --------------------------- | ----------------------------- | ----------- | ----------------------------------------------- |
30+
| Multi-frame cross filtering | `enableMultiFrameCrossFilter` | `false` | Improves accuracy; disabling may increase speed |
31+
32+
---
33+
34+
> 💡 **Note**:
35+
> Disabling multi-frame cross filtering can make scanning faster, but may increase the risk of recognition errors.

0 commit comments

Comments
 (0)