SelphID Component
0. SDK Mobile baseline requirementsβ
SDK Mobile is a set of libraries (Components) that offer a series of functionalities and services, allowing their integration into a Mobile application in a simple and fully scalable way. Certain components must be installed depending on the use case required. Its high level of modularity allows other new components to be added in the future without affecting those already integrated into the project.
For more information on the base configuration, go to the Getting Started section.
1. Introductionβ
The Component dealt with in the current document is called SelphID Component. It is in charge of capturing documents and the subsequent extraction and analysis of their data. Its main functionalities are the following:
-
Internal management of cameras.
-
Permits management.
-
Assistant in the processes of capturing the front and back of the document. Extraction of the information contained in the document.
-
Obtain the images of the back and reverse side of the document, as well as other images included in the document: user's face, user's signature, etc.
-
High level of configuration: different countries, languages, document types...
2. Integration of the componentβ
Before integrating this component, it is recommended to read the documentation related to Getting Started and follow its instructions.
This section will explain step by step how to integrate the current component into an existing project.
2.1. Dependencies required for integrationβ
To avoid conflicts and compatibility problems, if you want to install the component in a project containing an old Facephi libraries (Widgets) version, these must be removed entirely before installing the SDKMobile components.
-
Currently, FacePhi libraries are distributed remotely through different dependency managers. Mandatory dependencies that must be installed beforehand:
implementation "com.facephi.androidsdk:selphid_component:$sdk_selphid_component_version"
2.1. Resources zip fileβ
Table of sdk versions and associated resource versions (Found in the Resources section):
SDK version | Selphi resources version |
---|---|
2.0.2 | 1.25.1 |
2.0.3 | 1.26.0 |
2.1.0 | 1.27.0 |
3. Start a new operationβ
When you want to perform a specific operation, in order to generate the associated information correctly in the platform, the newOperation command must first be executed.
This command must have been executed before launch.
To learn more about how to start a new operation, it is recommended to consult the Getting Started documentation, which details and explains what this process consists of.
4. Available controllersβ
Controller | Description |
SelphIDController | Document recognition main controller |
5. Component configurationβ
Once initialized, a SelphIDConfigurationData object must be created and passed as a parameter to the SDKController during component launch to configure the current component.
The following section will show the fields part of this class and what each is used for.