Frequently Asked Questions
- Can the MRZ Scanner process static images, or does it only work with live cameras?
- Does MRZ Scanner perform data validation?
- How do I use the scanned result?
Can the MRZ Scanner process static images, or does it only work with live cameras?
Yes, the MRZ Scanner can read from static images and image files, along with the typical use case of scanning from a live camera feed.
Does the MRZ Scanner perform data validation?
No. MRZ Scanner JavaScript Edition performs all image capture, image enhancement, and MRZ parsing on-device, to give you full control of your data. The MRZ Scanner processes the data on the client device without passing the data to external servers. Your application must implement data validation on the decoded MRZ data after reading with the MRZ Scanner if your use case requires data validation.
How do I use the scanned result?
The simplest implementation uses the default UI and does not take action after scanning. You can customize the behavior by handling callbacks provided by the API. The launch() method returns the scanned result as the type MRZResult, which includes the image of the document, as well as the parsed MRZ data separated into fields.