JavaScript Passport MRZ Reader and Scanner
The sample demonstrates how to use Dynamsoft Camera Enhancer and Dynamsoft Label Recognizer to read and scan passport MRZ from web browsers using JavaScript.
SDK Activation
- Apply for a trial license key of Dynamsoft Label Recognizer.
-
Update the JavaScript code:
Dynamsoft.DLR.LabelRecognizer.initLicense("DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAxLTE2NDk4Mjk3OTI2MzUiLCJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSIsInNlc3Npb25QYXNzd29yZCI6IndTcGR6Vm05WDJrcEQ5YUoifQ==");
Online Demo
https://yushulx.github.io/javascript-passport-mrz-scanner/
API Reference
- https://www.dynamsoft.com/camera-enhancer/docs/programming/javascript/api-reference/?ver=latest
- https://www.dynamsoft.com/label-recognition/programming/javascript/api-reference/?ver=latest
Blog
Making Web Passport MRZ Reader and Scanner in HTML5 and JavaScript

