Passport onboarding, hotel check-in, and KYC flows usually need more than plain OCR. You need MRZ parsing, document localization, and a reliable portrait crop from the same capture pipeline, ideally in the browser without shipping data to a server. This sample uses Dynamsoft Capture Vision on the web to read passport and ID card MRZ data, draw document boundaries, and extract the portrait photo from uploaded images or a captured camera frame.
What you'll build: A plain JavaScript passport and ID scanner that uses Dynamsoft Capture Vision 3.4.2001 to extract MRZ text, structured fields, document borders, and portrait photos from uploaded images or a frozen camera frame.
Live demo
https://yushulx.me/javascript-barcode-qr-code-scanner/examples/mrz_scanner/
Watch the JavaScript Passport Scanner Demo
Prerequisites
A modern browser with camera and clipboard support
A local web server such as Python's built-in HTTP server
Dynamsoft Capture Vision Bundle 3.4.2001
A valid Dynamsoft license key for MRZ…