# react-mrz-scanner A React component to scan MRZ on passports, visa cards, etc. It is based on [Dynamsoft Label Recognizer](https://www.dynamsoft.com/label-recognition/overview/). [Online demo](https://deft-pegasus-b295f8.netlify.app/) [demo video](https://github.com/tony-xlh/react-mrz-scanner/assets/5462205/d201bca5-4ae2-43f9-adc9-b532f67e919e) ## Installation ```bash npm install react-mrz-scanner ``` ## Usage 1. Import the library along with its css: ```ts import { MRZScanner } from 'react-mrz-scanner'; import '../node_modules/react-mrz-scanner/dist/style.css'; ``` 2. Use the component in jsx: ```ts (console.log(results))} > ``` ## Product License You need to pass a license for Dynamsoft Label Recognizer. You can apply for one [here](https://www.dynamsoft.com/customer/license/trialLicense?product=dlr). A one-day trial license will be used by default if you do not specify one.