Skip to content

Installation on .NET MAUI

How to install Document Reader SDK.

Overview

graph LR
  A(Document Reader SDK) --> B(API);
  A --> C(Core);
  B --> D(Common);
  A -.- E[(Database)];

Document Reader SDK consists of two frameworks: API and Core.

API framework provides the external interface for controlling the process and getting the result. It depens on the Common framework that is an interface for working with the camera and other modules that are used in other Regula SDKs.

Core framework provides the recognition functionality where all the processing happens. This is the internal framework, it is used by the API framework only and is not accessible for developers. However, it should be referenced in the project.

Database contains the documents' data. It's mandatory to have it if you use the Core type that supports document type recognition.

Requirements

Installation

Document Reader SDK for reading and validation of identification documents is available via NuGet.

Information about the ways of installation packages can be found in the official Microsoft documentation.

ProGuard Rules

To shrink, obfuscate, and optimize your app, you have to use the following ProGuard rules:

proguard-rules.pro
-keep class com.regula.documentreader.** { *; }
-keep class com.regula.common.** { *; }
-keep class android.support.v7.widget.FitWindowsLinearLayout { *; }
-keep class androidx.appcompat.widget.FitWindowsLinearLayout { *; }

For more information on shrinking, obfuscating, and optimizing your application, see the official Microsoft documentation.

Core Types

There is a variety of the Core framework types, each has different features included.

Find the list of available features in the table below.

Feature Description
Visual zone OCR Optical character recognition of the document visual zone text fields based on document templates included in the database.
Document type identification Automatic recognition of the document type: no need to manually select a country, document type, and series for processing.
MRZ OCR Reading and parsing the machine readable zone lines into separate fields.
Barcode recognition Reading the 1D and 2D (PDF417, QR, Aztec, Datamatrix) barcodes and automatic parsing into text fields using included document template specifications if the template database is available and the document type is identified.
Document location Detecting the document boundaries and cropping out the document from the supplied picture.
Graphics cropping Cropping graphic fields, such as a photo portrait and signature, based on templates included in the database.
RFID chip processing Reading data from electronic contactless chips of ePassport, eID, and eDL using NFC hardware, if present.
Security features check For each document type, certain secutiry checks can be performed. For example, UV dull paper check, image patterns (VIS), IR transparency, etc. You can find the security checks by document types in the Documents list.

The size of the Core framework depends on the features included, so choose the one that suits your case the best to optimize the size of your application.

dotnet add package Xamarin.DocumentReader.Core.FullRfid.Android
dotnet add package Xamarin.DocumentReader.Core.FullRfid.iOS

Features:

  • Visual zone OCR
  • Document type identification
  • MRZ OCR
  • Barcode recognition
  • Document location
  • Graphics cropping
  • RFID chip processing
  • Checking security features

Notes:

dotnet add package Xamarin.DocumentReader.Core.Full.Android
dotnet add package Xamarin.DocumentReader.Core.Full.iOS

Features:

  • Visual zone OCR
  • Document type identification
  • MRZ OCR
  • Barcode recognition
  • Document location
  • Graphics cropping
  • RFID chip processing
  • Checking security features

Notes:

dotnet add package Xamarin.DocumentReader.Core.OcrAndMRZ.Android
dotnet add package Xamarin.DocumentReader.Core.OcrAndMRZ.iOS

Features:

  • Visual zone OCR
  • Document type identification
  • MRZ OCR
  • Barcode recognition
  • Document location
  • Graphics cropping
  • RFID chip processing
  • Checking security features

Notes:

dotnet add package Xamarin.DocumentReader.Core.MRZ.Android
dotnet add package Xamarin.DocumentReader.Core.MRZ.iOS

Features:

  • Visual zone OCR
  • Document type identification
  • MRZ OCR
  • Barcode recognition
  • Document location
  • Graphics cropping
  • RFID chip processing
  • Checking security features

Notes:

dotnet add package Xamarin.DocumentReader.Core.Barcode.Android
dotnet add package Xamarin.DocumentReader.Core.Barcode.iOS

Features:

  • Visual zone OCR
  • Document type identification
  • MRZ OCR
  • Barcode recognition
  • Document location
  • Graphics cropping
  • RFID chip processing
  • Checking security features

Notes:

dotnet add package Xamarin.DocumentReader.Core.FullAuthRfid.Android
dotnet add package Xamarin.DocumentReader.Core.FullAuthRfid.iOS

Features:

  • Visual zone OCR
  • Document type identification
  • MRZ OCR
  • Barcode recognition
  • Document location
  • Graphics cropping
  • RFID chip processing
  • Checking security features

Notes:

dotnet add package Xamarin.DocumentReader.Core.BarcodeMRZ.Android
dotnet add package Xamarin.DocumentReader.Core.BarcodeMRZ.iOS

Features:

  • Visual zone OCR
  • Document type identification
  • MRZ OCR
  • Barcode recognition
  • Document location
  • Graphics cropping
  • RFID chip processing
  • Checking security features

Notes:

dotnet add package Xamarin.DocumentReader.Core.MRZRfid.Android
dotnet add package Xamarin.DocumentReader.Core.MrzRfid.iOS

Features:

  • Visual zone OCR
  • Document type identification
  • MRZ OCR
  • Barcode recognition
  • Document location
  • Graphics cropping
  • RFID chip processing
  • Checking security features

Notes:

dotnet add package Xamarin.DocumentReader.Core.DocType.Android
dotnet add package Xamarin.DocumentReader.Core.DocType.iOS

Features:

  • Visual zone OCR
  • Document type identification
  • MRZ OCR
  • Barcode recognition
  • Document location
  • Graphics cropping
  • RFID chip processing
  • Checking security features

Notes:

dotnet add package Xamarin.DocumentReader.Core.OcrAndMrzRfid.Android
dotnet add package Xamarin.DocumentReader.Core.OcrAndMrzRfid.iOS

Features:

  • Visual zone OCR
  • Document type identification
  • MRZ OCR
  • Barcode recognition
  • Document location
  • Graphics cropping
  • RFID chip processing
  • Checking security features

Notes:

dotnet add package Xamarin.DocumentReader.Core.BarcodeMrzRfid.Android
dotnet add package Xamarin.DocumentReader.Core.BarcodeMRZRFID.iOS

Features:

  • Visual zone OCR
  • Document type identification
  • MRZ OCR
  • Barcode recognition
  • Document location
  • Graphics cropping
  • RFID chip processing
  • Checking security features

Notes:

dotnet add package Xamarin.DocumentReader.Core.FullAuth.Android
dotnet add package Xamarin.DocumentReader.Core.FullAuth.iOS

Features:

  • Visual zone OCR
  • Document type identification
  • MRZ OCR
  • Barcode recognition
  • Document location
  • Graphics cropping
  • RFID chip processing
  • Checking security features

Notes:

dotnet add package Xamarin.DocumentReader.Core.Bounds.Android
dotnet add package Xamarin.DocumentReader.Core.Bounds.iOS

Features:

  • Visual zone OCR
  • Document type identification
  • MRZ OCR
  • Barcode recognition
  • Document location
  • Graphics cropping
  • RFID chip processing
  • Checking security features

Notes:

Info

If you are not sure yet which Core type to choose, consider the fullrfid one. You will be able to get back and change your decision at any moment.

Next Steps