Regula Document ReaderβPaid
This plugin is still in beta stage and may not work as expected. Please submit any issues to the plugin repo.
This plugin might require a paid license, or might take a share of your app's earnings. Check the plugin's repo for more information.
Plugin for reading and validation of identification documents.
Repo: https://github.com/regulaforensics/cordova-plugin-documentreader.git
Installation
- Install the Cordova and Ionic Native plugins:
$ ionic plugin add cordova-plugin-documentreader --variable CAMERA_USAGE_DESCRIPTION="To take photo" $ npm install --save @ionic-native/regula-document-reader@4
- Add this plugin to your app's module
Supported platforms
- iOS
- Android
Usage
import { RegulaDocumentReader } from '@ionic-native/regula-document-reader';
let license; // read regula.license file
RegulaDocumentReader.initReader(license); // initialize reader
RegulaDocumentReader.scanDocument().then((result) => {
// read result
})
Instance Members
initReader(license)
Initialize the scanner
Param | Type | Details |
---|---|---|
license |
any
|
License data |
scanDocument()
Run the scanner
Returns: Promise<string[]>
Returns a promise that resolves when results was got, and fails when not