MAUI: copy regula.license to DocumentReaderSample/Resources/Raw/regula.license copy db.dat to DocumentReaderSample/Platforms/Android/Assets/Regula/db.dat and to DocumentReaderSample/Resources/Raw/db.dat
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.
regula.license
file). The license creation wizard will guide you through the necessary steps.git clone https://github.com/regulaforensics/Xamarin-DocumentReader.git
.regula.license
to DocumentReaderSample/Droid/Assets
or DocumentReaderSample/iOS/Resources
folder. db.dat
to DocumentReaderSample/Droid/Assets/Regula
or DocumentReaderSample/iOS/Resources
folder. If you have issues with license verification when running the application, please verify that next is true:
license
into the correct folder as described here How to build demo application (DocumentReaderSample/Droid/Assets
or DocumentReaderSample/iOS/Resources
folder).db.dat
into the correct folder as described here How to build demo application (DocumentReaderSample/Droid/Assets/Regula
or DocumentReaderSample/iOS/Resources
folder).You can find all available packages for Xamarin here.
To install the libraries for Android, simply open your project and install our NuGet packages named Xamarin.DocumentReader.Api.Android
and (Xamarin.DocumentReader.Core.Full.Android
or Xamarin.DocumentReader.Core.FullRfid.Android
). For more details on how to install a NuGet package, see here.
Once the libraries are installed, see our Document Reader Sample App for an example of how to use it.
To install the libraries for iOS, simply open your project and install our NuGet packages named Xamarin.DocumentReader.Api.iOS
and Xamarin.DocumentReader.Core.Full.iOS
. For more details on how to install a NuGet package, see here.
After you added libraries from NuGet to the project, make sure that you initialized Core
int the code. For example, take a look int the code below.
public partial class ViewController : UIViewController
{
....
protected ViewController(IntPtr handle) : base(handle) =>
//WARNING!!!!
//Initialization DocumentReader from DocReaderCore is required
new DocReaderCore.iOS.DocumentReader();
....
}
FYI: Xamarin is not included into ipa frameworks which are not called in the code. You can successfylly build project and run, but in runtime you will get error that DocumentReaderCore library not loaded. See error below.
dyld: Library not loaded: @rpath/DocumentReaderCore.framework/DocumentReaderCore
Don't forgot update your plist with next properties:
It's required for make a snapshot from camera or get a photo from gallery.
Because we're using Swift language for API SDK, cannot upload ipa to iTunes without next steps.
Once the libraries are installed, see our Document Reader Sample App for an example of how to use it.