vue-mrz-scanner
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

vue-mrz-scanner

A Vue component to scan MRZ on passports, visa cards, etc. It is based on Dynamsoft Label Recognizer.

Online demo

Demo video

Installation

npm install vue-mrz-scanner

Usage

  1. Import the library along with its css:

    import MRZScanner from 'vue-mrz-scanner';
    import '../node_modules/vue-mrz-scanner/dist/style.css';
  2. Use the component in template:

    <MRZScanner 
      license="DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAxLTE2NDk4Mjk3OTI2MzUiLCJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSIsInNlc3Npb25QYXNzd29yZCI6IndTcGR6Vm05WDJrcEQ5YUoifQ=="
      :scanning="true"
      @scanned="(results)=>console.log(results)"
    >
    </MRZScanner>

Product License

You need to pass a license for Dynamsoft Label Recognizer. You can apply for one here. A one-day trial license will be used by default if you do not specify one.

/vue-mrz-scanner/

    Package Sidebar

    Install

    npm i vue-mrz-scanner

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    1.26 MB

    Total Files

    9

    Last publish

    Collaborators

    • xulihang