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 DocumentReader Library.
- How to build demo application
- How to add DocumentReader library to your project
- Troubleshooting license issues
- Documentation
- Additional information
- Download and install latest Android Studio.
- Download or clone current repository using the command
git clone https://github.com/regulaforensics/DocumentReader-Android.git
. - Launch Android Studio and select Open an existing Android Studio project then select DocumentReader-sample project in file browser.
- Download additional files proposed by Android Studio to build project (e.g., build tools).
- Visit licensing.regulaforensics.com to get your trial license(
regula.license
) and documents database(db.dat
). Download both files to your computer. You can create license by clicking "Generate demo license". License creation wizard will guide you through necessary steps. You can select and download appropriate database version on "Databases" page. - Change the application ID in the
DocumentReader-sample/app/build.gradle
file to the one you have specified during registration at licensing.regulaforensics.com (com.regula.documentreader
by default). - Copy
regula.license
file toDocumentReader-sample/app/src/main/res/raw
folder. - Copy downloaded database (
db.dat
file) toDocumentReader-sample/app/src/main/assets/Regula
folder. - Build and run the application.
Document Reader libraries are available in our Maven repository.
First of all, install API library, simply adding the following lines of code to the build.gradle
file of your project:
implementation ('com.regula.documentreader:api:+aar'){
transitive = true
}
And then add one of the Core libraries depend on the functionality that you wish and the license capabilities:
- Install barcode library edition:
implementation 'com.regula.documentreader.barcode:core:+@aar'
- Install barcodemrz library edition:
implementation 'com.regula.documentreader.barcodemrz:core:+@aar'
- Install bounds library edition:
implementation 'com.regula.documentreader.bounds:core:+@aar'
- Install doctype library edition:
implementation 'com.regula.documentreader.doctype:core:+@aar'
- Install full library edition:
implementation 'com.regula.documentreader.full:core:+@aar'
- Install fullrfid library edition:
implementation 'com.regula.documentreader.fullrfid:core:+@aar'
- Install mrz library edition:
implementation 'com.regula.documentreader.mrz:core:+@aar'
- Install mrzrfid library edition:
implementation 'com.regula.documentreader.mrzrfid:core:+@aar'
- Install ocrandmrz library edition:
implementation 'com.regula.documentreader.ocrandmrz:core:+@aar'
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 (Android).
- The application 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 correct folder (
DocumentReader-sample/app/src/main/res/raw
) as described in How to build demo application.
You can find documentation on API here.
If you have any technical questions, feel free to contact us or create an issue here.
To use our SDK in your own app you need to purchase a commercial license.