As Adobe has discontinued PhoneGap Build and ended investment in PhoneGap and Apache Cordova, this repository is deprecated now and won’t be updated anymore.
Regula Document Reader SDK allows you to read various kinds of identification documents, passports, driving licenses, ID cards, etc. All processing is performed completely offline on your device. No any data leaving your device.
You can use native camera to scan the documents or image from gallery for extract all data from it.
We have provided a simple application that demonstrates the API calls you can use to interact with the Document Reader Library.
- How to build the demo application
- How to add the SDK to the project
- Troubleshooting license issues
- Documentation
- Additional information
- Visit licensing.regulaforensics.com to get a trial license (
regula.license
file). The license creation wizard will guide you through the necessary steps. - Download or clone current repository using the command
git clone https://github.com/regulaforensics/DocumentReader-PhoneGap-Plugin.git
. - Run the following commands in Terminal:
$ cd DocumentReader
$ npm install
$ cordova prepare
- Copy the
regula.license
file to theDocumentReader/www
folder. - Change the application ID to the one you have specified during the registration at licensing.regulaforensics.com.
- Android:
- Run
cordova run android
insideDocumentReader
folder - this is just one way to run the app. You can also run it directly from within Android Studio.
Note: if the following error is encountered: Program type already present: android.support ...
, remove this line: cordova.system.library.1=com.android.support:support-...
from the project.properties
file.
- iOS:
- Run
cordova run ios
insideDocumentReader
folder - this is just one way to run the app. You can also run it directly from within Xcode.
Document Reader libraries are available on npm. First of all, install API library, simply running the following command:
$ phonegap plugin add @regulaforensics/cordova-plugin-document-reader-api --variable CAMERA_USAGE_DESCRIPTION="To take photo" --variable READ_EXTERNAL_STORAGE="To choose photo"
And then add one of the Core libraries depend on the functionality that you wish and the license capabilities, e.g.:
$ phonegap plugin add @regulaforensics/cordova-plugin-document-reader-core-fullrfid
If you have issues with license verification when running the application, please verify that next is true:
- The OS, which you use, is specified in the license (e.g., Android and/or iOS).
- The application (Bundle) ID, which you use, is specified in the license.
- The license is valid (not expired).
- The date and time on the device, where you run the application, are valid.
- You use the latest release version of the Document Reader SDK.
- You placed the license into the project.
The documentation on the SDK can be found here.
If you have any technical questions, feel free to contact us or create issue here.
To use our SDK in your own app you need to purchase a commercial license.