> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/sdks/sdk-mobile/android-sdk/componentes-modulos/captura-de-documentos.md).

# Document Capture - SelphID

## Introduction <a href="#id-1-introduccion" id="id-1-introduccion"></a>

Document capture is performed using the **SelphID Component**.

This component captures identity documents and analyzes the information obtained. The process includes, among other things, the following steps:

* Internal management of cameras and permissions.
* Guided assistance during capture of the **front and back** of the document.
* Extraction of the information contained in the document.
* Obtaining images of the document and associated elements:
  * User's face.
  * User's signature.
* Extensive configuration options:
  * Countries.
  * Languages.
  * Document types.

The [Simplified Launch](https://docs.facephi.com/docs.facephi-en/sdks/sdk-mobile/android-sdk/inicializacion/lanzamiento-simplificado.md) section describes the basic steps for integrating the SDK.\
This page details the specific information required to launch and configure this component.

***

## Dependency <a href="#id-2-dependencia" id="id-2-dependencia"></a>

The component-specific dependency is:

```kotlin
implementation "com.facephi.androidsdk:selphid_component:$version"
```

***

## Available Controllers <a href="#id-3-controladores-disponibles" id="id-3-controladores-disponibles"></a>

| **Controller**    | **Description**                      |
| ----------------- | ------------------------------------ |
| SelphIDController | Main document recognition controller |

***

## Simplified Launch <a href="#id-4-lanzamiento-simplificado" id="id-4-lanzamiento-simplificado"></a>

Once the SDK has been initialized and a new operation created, the component can be launched using its controller.

Launching document capture:

```kotlin
val response = SDKController.launch(
    SelphIDController(SelphIDConfigurationData(..))
)
when (response) {
    is SdkResult.Error -> Napier.d("SelphID: ERROR - ${response.error.name}")
    is SdkResult.Success -> response.data
}
```

***

## Basic Configuration <a href="#id-5-configuracion-basica" id="id-5-configuracion-basica"></a>

To launch the component, you need to create a **SelphIDConfigurationData**object, which defines the widget's behavior.

In the basic configuration:

* You must define the **country** and the **document type**.
* In the `specificData` field, specify the corresponding country code (for example, `ES` for Spain).

```kotlin
SelphIDConfigurationData(
  resourcesPath = "resources_file.zip",
  wizardMode = true,
  specificData = "ES|<ALL>",
  documentType = SelphIDDocumentType.ID_CARD,
)
```

**Available document types**

```
SelphIDDocumentType.ID_CARD
SelphIDDocumentType.PASSPORT
SelphIDDocumentType.DRIVERS_LICENSE
SelphIDDocumentType.FOREIGN_CARD
SelphIDDocumentType.CREDIT_CARD
SelphIDDocumentType.CUSTOM
SelphIDDocumentType.VISA
```

***

## Receiving the result <a href="#id-6-recepcion-del-resultado" id="id-6-recepcion-del-resultado"></a>

The launch result is returned as an object **SdkResult**, which can indicate a successful result or an error.

```kotlin
when (response) {
    is SdkResult.Error -> Napier.d("ERROR - ${response.error}")
    is SdkResult.Success -> response.data
}
```

### Receiving errors <a href="#id-61-recepcion-de-errores" id="id-61-recepcion-de-errores"></a>

Errors are returned as a **SelphIDError**, which includes the properties `name`, `reason` and `code`. The following list shows the name (`name`) and code (`code`) of each error.

**Error list**

* `ACTIVITY_RESULT_ERROR` (`SPD_312`): The activity result is incorrect.
* `ACTIVITY_RESULT_MSG_ERROR` (`SPD_313`): The activity result received in the msg is incorrect.
* `APPLICATION_CONTEXT_ERROR` (`SPD_314`): The required application context is null.
* `BAD_CONFIGURATION_ERROR` (`SPD_310`): The provided configuration is incorrect.
* `BAD_EXTRACTOR_CONFIGURATION_ERROR` (`SPD_300`): Widget: Incorrect extractor configuration
* `CAMERA_PERMISSION_DENIED` (`SPD_301`): The user denied the permissions.
* `CANCEL_BY_USER` (`SPD_000`): The user canceled the process.
* `CANCEL_LAUNCH` (`SPD_007`): A general SDK cancellation occurred.
* `COMPONENT_LICENSE_ERROR` (`SPD_002`): The component license is incorrect.
* `CONSUMED_BY_LICENSE_ERROR` (`SPD_302`): Error related to license consumption.
* `CONTROL_NOT_INITIALIZED_ERROR` (`SPD_303`): Widget: Initialization error
* `EMPTY_LICENSE` (`SPD_003`): The license String is empty.
* `EXTRACTION_LICENSE_ERROR` (`SPD_304`): Widget: License error
* `FETCH_DATA_ERROR` (`SPD_315`): Error collecting the result.
* `FLOW_ERROR` (`SPD_337`): Error in the flow process.
* `FLOW_TRACKING_ERROR` (`SPD_331`): Error tracking the flow.
* `FLOW_VIDEO_RECORDING_ERROR` (`SPD_329`): Error recording video in the flow.
* `HARDWARE_ERROR` (`SPD_305`): Widget: Hardware error
* `INITIALIZATION_ERROR` (`SPD_004`): Initialization error.
* `INTERNAL_ERROR` (`SPD_328`): Internal error.
* `MANAGER_NOT_INITIALIZED` (`SPD_316`): The managers are null.
* `NO_DATA_ERROR` (`SPD_005`): The input data is null.
* `OPERATION_NOT_CREATED` (`SPD_006`): There is no operation in progress.
* `RESOURCES_FILE_NOT_FOUND` (`SPD_306`): The resources zip file was not found
* `SETTINGS_PERMISSION_ERROR` (`SPD_307`): Widget: Permissions error
* `SELPHID_TIMEOUT` (`SPD_001`): Timeout in the process. Includes additional capture information (see [Timeout error](#error-de-timeout-selphid_timeout)).
* `TRACKING_STEP_ERROR` (`SPD_330`): Error tracking the step.
* `UNEXPECTED_CAPTURE_ERROR` (`SPD_308`): Widget: Capture error
* `UNKNOWN_ERROR` (`SPD_309`): Unknown error
* `WIDGET_RESULT_DATA_ERROR` (`SPD_311`): Error in the widget's output data

#### Timeout error (`SELPHID_TIMEOUT`)

When capture ends due to a timeout, the error `SelphIDError.SELPHID_TIMEOUT` includes, in addition to `name`, `reason` and `code`, the following fields:

* `error`: Timeout diagnostic (string). See below.
* `captureProgress`: State the capture process was in. See below.
* `rawDocumentFrontImage`: Full camera image (`SdkImage`) of the front of the document, if available.
* `rawDocumentBackImage`: Full camera image (`SdkImage`) of the back of the document, if available.
* `logs`: Logs generated by the extractor during capture.

**captureProgress**

This property returns the state the capture process was in when the timeout occurred. Possible values are:

```
Front_Detection_None = 0
Front_Detection_Uncertain = 1
Front_Detection_Completed = 2
Front_Document_Analyzed = 3
Back_Detection_None = 4
Back_Detection_Uncertain = 5
Back_Detection_Completed = 6
Back_Document_Analyzed = 7
```

* **0**: During front-side reading, the widget finished without detecting anything. This usually happens when no document is placed.
* **1**: During front-side reading, the widget finished after partially detecting a document. In this case, some of the expected elements were detected, but not all the required ones.
* **2**: During front-side reading, the widget finished detecting all the document elements. If the widget ends in this state, it is because OCR analysis could not be completed successfully.
* **3**: During front-side reading, the widget finished analyzing the document and extracting all its OCR data. This is the state reached after a successful front-side document reading.

The states from **4** to **7** are exactly the same, except that they refer to the result of the process when the back is analyzed.

**error**

This field returns a string explaining why the widget timed out. This string can be used on a subsequent timeout screen, where the main application can provide the user with more information about what happened during document capture.

Possible values are the strings defined in the component's resource ZIP file (`resourcesPath`), identified by the following tokens:

| **Token**                          | **Value**                                                                                                                           |
| ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| `timeout_no_front_document`        | The front of the document has not been detected. Make sure to place the document within the capture frame                           |
| `timeout_uncertain_front_document` | The front of the document does not appear to be the expected one, or there is glare or shadow making it difficult to classify       |
| `timeout_unclear_front_document`   | The front of the document could not be read successfully. Make sure the image is sharp and the document details are clearly legible |
| `timeout_no_back_document`         | The back of the document has not been detected. Make sure to place the document within the capture frame                            |
| `timeout_uncertain_back_document`  | The back of the document does not appear to be the expected one, or there is glare or shadow making it difficult to classify        |
| `timeout_unclear_back_document`    | The back of the document could not be read successfully. Make sure the image is sharp and the document details are clearly legible  |
| `timeout_no_user_activity`         | The maximum wait time has been exceeded                                                                                             |

### Receiving the successful result - *data* <a href="#id-62-recepcion-del-resultado-correcto-data" id="id-62-recepcion-del-resultado-correcto-data"></a>

When the result is successful (`SdkResult.Success`), an object is returned **SelphIDResult**.

Images are returned in **SdkImage**format.\
The bitmap can be accessed using `image.bitmap`.

To convert an image to Base64:

```kotlin
Base64.encodeToString(this.toByteArray(), Base64.NO_WRAP)
```

**Returned fields**

**frontDocumentImage / tokenFrontDocument:**

The front image of the document, processed, cleaned, and cropped to the edges, and its corresponding token.

**backDocumentImage / tokenBackDocument**

The back image of the document, processed, cleaned, and cropped to the edges, and its associated token.

**faceImage / tokenFaceImage**

The image of the face found on the document, if one exists, and its associated token.

Valid for the FACIAL MATCHING process.

**signatureImage / fingerprintImage**

Image of the signature and fingerprint found on the document, if they exist.

**rawFrontDocumentImage / rawBackDocumentImage / tokenRawFrontDocument / tokenRawBackDocument**

Full camera image and its corresponding token (see `generateRawImages`).

**tokenOCR**

Token associated with the extracted OCR data.

**statistics**

String containing statistical information about the capture process.

**logs**

String containing the logs generated by the extractor during the capture process.

**documentCaptured**

This property indicates the document model that was captured when performing a search in SMSearch mode. This allows the application to determine which model, among all those permitted, was detected.

**matchingSidesScore**

This property returns a calculation of the similarity between the data read from the front and back of the document. The calculation checks the similarity between the common fields read from both sides. If the document has common fields, the result is a value between 0.0 and 1.0. The higher the value, the more similar the compared data is. A result of -1.0 means the document has no common fields or information from both sides is not yet available.

**ocrResults**

This dictionary contains all the data detected in the document. The keys for each field are encoded so that each key itself contains information about where the value was obtained. For example, the key `Front/MRZ/DocumentNumber` indicates the DocumentNumber value read from the Front of the document and from the MRZ region. These keys depend on the captured document and therefore differ across countries and document models. The dictionary also contains keys with more generic names that do not include location information. These keys contain the most complete data read for that field.

These keys are as follows:

* **FirstName**: The value associated with this key contains the user's first name.
* **LastName**: The value associated with this key contains the user's last name.
* **DateOfBirth**: The value associated with this key contains the date of birth detected in the document.
* **Gender**: The value associated with this key contains the user's gender detected in the document.
* **Nationality**: The value associated with this key contains the user's nationality detected in the document.
* **DocumentNumber**: The value associated with this key contains the document number.
* **DateOfExpiry**: The value associated with this key contains the document's expiration date.
* **Issuer**: The value associated with this key contains the document issuer.
* **DateofIssue**: The value associated with this key contains the document's issue date.
* **PlaceOfBirth**: The value associated with this key contains the user's place of birth.
* **Address**: The value associated with this key contains the address detected in the document.

Additionally, keys from the results object itself are included to make them easier to find:

* **DocumentCaptured**: Value of the document model captured according to the models .xml. Corresponds to the documentCaptured property.
* **MatchingSidesScore**: Value indicating the correspondence between the document sides that were read. Corresponds to the matchingSidesScore property.

**countryCaptured**

Country of the document.

**documentTypeCaptured**

Document type (`SelphIDDocumentType`).

**personalData**

Reduced set of data obtained from the user:

* issuer
* documentNumber
* issueDate
* expiryDate
* name
* surname
* fullName
* gender
* birthDate
* birthPlace
* nationality
* address
* nfcKey
* numSupport
* MRZ

**encodedDataImages**

List of objects `SelphIDEncodedDataImage` (`image`: SdkImage, `format`: String, `side`: SelphIDDocumentSide?) obtained from barcode extraction mode (mbsdr version with `encodedDataFocusEnabled` enabled). Defaults to an empty list.

**tokenEncodedDataImages**

List of objects `SelphIDEncodedDataToken` (`token`: String, `format`: String, `side`: SelphIDDocumentSide?) with the tokenized images obtained from barcode extraction mode (mbsdr version with `encodedDataFocusEnabled` enabled). Defaults to an empty list.

***

## Advanced information <a href="#id-7-informacion-avanzada" id="id-7-informacion-avanzada"></a>

### Document selector - OPTIONAL

**showDocumentSelector**

Enables the document selector view. It will be displayed as soon as the controller launches. Default: `false`.

**enabledCountries**

List of countries in ISO2 format that will appear in the selector. If its value is null or contains no valid values, all those available in the SDK will be displayed.

**enabledDocumentTypes**

List of document types that will appear in the document type selector. If its value is null or contains no values, all those available in the SDK will be displayed.

#### Advanced component configuration

The component's behavior is defined by **SelphIDConfigurationData**.

**resourcesPath**

Specifies the name of the component's resources in zip format. Example: “resources-selphid-2-0.zip“.

This name will be used to look for the file in the *assets*.

<div align="left"><figure><img src="https://865101184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUo71Qbj6jZQDavjc0U5X%2Fuploads%2Fgit-blob-15ce71837bf3d4cff1f1509e00d49ef3c005ef31%2Fassets.png?alt=media" alt=""><figcaption></figcaption></figure></div>

**wizardMode**

Specifies whether the widget is configured to capture both sides (front and back) of the document consecutively. In this mode, the widget is launched only once; after capturing the front, it immediately proceeds to the back.

**showResultAfterCapture**

Specifies whether to display a screen with the captured document image after the analysis process. This screen gives the user the option to repeat the capture process if the image obtained from the document is incorrect.

**showTutorial**

Specifies whether the widget enables the tutorial screen. This view intuitively explains how to capture an image. Default: `true`.

**tutorialOnly**

Specifies whether the widget should launch only to display the tutorial. Default: `false`.

**scanMode**

Specifies the OCR scanning mode for documents. Depending on the selection, several document types or one specific type will be scanned and searched for. There are three possible modes:

* **SelphIDScanMode.MODE\_GENERIC**: The generic mode, which allows scanning any document type, regardless of country or document type. This mode is less precise than the following modes, but allows scanning several standard documents.
* **SelphIDScanMode.MODE\_SEARCH**: Search mode allows you to use a whitelist and blacklist, and searches for documents that meet those conditions. These conditions are specified in the "specificData" variable. This mode lets you narrow the search by limiting the number of templates, making it much more precise than generic mode.
* **SelphIDScanMode.MODE\_SPECIFIC**: Search for a specific document. These conditions are specified in the "specificData" property shown below.

**specificData**

This property lets you define which documents will be scanned during the process if you set the scan mode (scanMode) to **MODE\_SEARCH** or **MODE\_SPECIFIC**.

The following is an example configuration that scans all documents with Spanish nationality:

```
val selphIDConfiguration = SelphIDConfigurationData(
    scanMode = SelphIDScanMode.MODE_SEARCH,
    specificData = "ES|<ALL>",  // ISO code for Spain (ES)
)
```

**fullscreen**

Indicates whether the view should take priority for being displayed in full screen, if the system allows it.

**tokenImageQuality**

Indicates the desired quality level for the tokenized images. Value between 0 and 1.

**documentType**

The allowed values are as follows:

* **SelphIDDocumentType.ID\_CARD**: The Widget is configured to capture identity documents.
* **SelphIDDocumentType.PASSPORT**: The Widget is configured to capture passports.
* **SelphIDDocumentType.DRIVERS\_LICENSE**: The Widget is configured to capture driving licenses.
* **SelphIDDocumentType.FOREIGN\_CARD**: The Widget is configured to capture foreign documents.
* **SelphIDDocumentType.CUSTOM**: The Widget is configured to capture other types of documents that do not fit into any of the previous categories.
* **SelphIDDocumentType.CREDIT\_CARD**: The Widget is configured to capture credit cards.
* **SelphIDDocumentType.VISA**: The Widget is configured to capture a country's visa. (SDK min 2.1.2)

**documentSide**

The allowed values are as follows:

* **SelphIDDocumentSide.FRONT**: The Widget is configured to capture the front of the document.
* **SelphIDDocumentSide.BACK**: The Widget is configured to capture the back of the document.

**timeout**

This is an enum that defines the capture timeout for one side of the document. It has 4 possible values:

* SelphIDTimeout.SHORT: 15 seconds.
* SelphIDTimeout.MEDIUM: 20 seconds.
* SelphIDTimeout.LONG: 25 seconds.
* SelphIDTimeout.VERY\_LONG: 60 seconds.

**videoFilename**

Sets the absolute path of the file in which a video of the capture process will be recorded. The application is responsible for requesting the necessary permissions from the phone if that path requires additional permissions. By default, the Widget will not record anything unless a file path is specified using this method.

**documentModels**

This property lets you configure, using an XML-formatted string, the document models that the Widget will attempt to capture. By default, these models are defined in a models .xml file included in the resources .zip. This property allows an application to update document models at runtime.

Note: This property does not alter the contents of the resources file.

**generateRawImages**

This property configures the Widget to return the full camera image used to capture the document. These images are returned in the properties `rawFrontDocumentImage` and `rawBackDocumentImage` of the object `SelphIDResult` respectively.

**tokenPreviousCaptureData**

When document capture is performed in two calls, this property allows you to pass a dictionary containing information from the previous capture. This enables the widget to intelligently combine the results of both scans and return the combined information from both captures. It also allows the widget to calculate a similarity score between the data from both sides.

If both sides of the document are captured in a single call, this is not necessary because the widget handles this process internally.

**translationsContent**

This advanced property allows you to configure the translations of the text displayed during the process using an XML-formatted string.

Note: This property does not alter the contents of the resources file.

**viewsContent**

This advanced property allows you to configure the widget views using an XML-formatted string.

Note: This property does not alter the contents of the resources file.

**showDiagnostic**

Show diagnostic screens at the end of the process. Default: `true`.

**showPreviousTip**

Show a screen before launching the capture, with information about the process to be performed and a launch button. Default: `true`.

**vibrationEnabled**

Indicates whether to provide vibration feedback when the process ends. Default: `false`.

**cameraId**

Identifier (`Int`) of the camera to use.

**params**

Map (`HashMap<String, String>`) of additional advanced parameters passed directly to the widget.

**encodedDataFocusEnabled**

**Enables the barcode extraction phase mode (mbsdr version)**

***

## Customization of the component <a href="#id-8-personalizacion-del-componente" id="id-8-personalizacion-del-componente"></a>

In addition to [SDK Customization](https://docs.facephi.com/docs.facephi-en/sdks/sdk-mobile/android-sdk/personalizacion.md) this component allows you to modify its interface.

### Text <a href="#id-81-textos" id="id-81-textos"></a>

Text can be customized by overriding the values in an XML strings file included in the client application.

Examples of available keys:

#### Diagnostics

| Name                                     | Value                                                                            |
| ---------------------------------------- | -------------------------------------------------------------------------------- |
| `selphid_component_timeout_title`        | Timeout                                                                          |
| `selphid_component_timeout_desc`         | Make sure the document is inside the frame and the data is visible.              |
| `selphid_component_timeout_front_desc`   | Make sure the front of the document is inside the frame and the data is visible. |
| `selphid_component_timeout_back_desc`    | Make sure the back of the document is inside the frame and the data is visible.  |
| `selphid_component_internal_error_title` | A technical problem occurred                                                     |
| `selphid_component_internal_error_desc`  | We apologize. The capture couldn't be completed                                  |

#### Previous Tip

| Name                                      | Value                                                                                         |
| ----------------------------------------- | --------------------------------------------------------------------------------------------- |
| `selphid_component_tip_message`           | Position your document inside the frame. The photo will be taken automatically.               |
| `selphid_component_tip_message_alt`       | Position your document inside the frame. The photo will be taken automatically.               |
| `selphid_component_tip_anim_id_alt`       | Place your identity document horizontally and point your phone at it in portrait orientation. |
| `selphid_component_tip_anim_passport_alt` | Place your passport horizontally and point your phone at it in portrait orientation.          |
| `selphid_component_tip_anim_driving_alt`  | Place your driving license horizontally and hold your phone vertically.                       |
| `selphid_component_tip_title`             | Document photo                                                                                |
| `selphid_component_tip_button`            | START                                                                                         |
| `selphid_component_tip_button_alt`        | Start Document Capture                                                                        |
| `selphid_component_tip_close_button_alt`  | BACK                                                                                          |
| `selphid_component_tip_info_button_alt`   | View tips                                                                                     |

#### Tutorial

| Name                                            | Value                                                                                         |
| ----------------------------------------------- | --------------------------------------------------------------------------------------------- |
| `selphid_component_tutorial_message_1`          | Find a background with good contrast.                                                         |
| `selphid_component_tutorial_message_2`          | Place the document inside the frame.                                                          |
| `selphid_component_tutorial_message_3`          | Avoid glare that makes the document difficult to read.                                        |
| `selphid_component_tutorial_1_anim_id_alt`      | Place the document on a surface with a different color from the document.                     |
| `selphid_component_tutorial_2_anim_id_alt`      | Place your identity document horizontally and point your phone at it in portrait orientation. |
| `selphid_component_tutorial_3_anim_id_alt`      | Reflections appear on the document.                                                           |
| `selphid_component_tutorial_1_anim_pass_alt`    | Place the passport on a surface with a different color from the document.                     |
| `selphid_component_tutorial_2_anim_pass_alt`    | Place your passport horizontally and point your phone at it in portrait orientation.          |
| `selphid_component_tutorial_3_anim_pass_alt`    | Reflections appear on the document.                                                           |
| `selphid_component_tutorial_1_anim_driving_alt` | Place the document on a surface with a different color from the document.                     |
| `selphid_component_tutorial_2_anim_driving_alt` | Place your identity document horizontally and point your phone at it in portrait orientation. |
| `selphid_component_tutorial_3_anim_driving_alt` | Reflections appear on the document.                                                           |
| `selphid_component_tip_health_alt`              | Place your health card horizontally and hold your phone vertically.                           |
| `selphid_component_tutorial_1_anim_health_alt`  | Place the health card on a surface with a different color from the document.                  |
| `selphid_component_tutorial_2_anim_health_alt`  | Place your identity document horizontally and point your phone at it in portrait orientation. |
| `selphid_component_tutorial_3_anim_health_alt`  | Reflections appear on the document.                                                           |
| `selphid_component_tip_custom_alt`              | --                                                                                            |
| `selphid_component_tutorial_1_anim_custom_alt`  | --                                                                                            |
| `selphid_component_tutorial_2_anim_custom_alt`  | --                                                                                            |
| `selphid_component_tutorial_3_anim_custom_alt`  | --                                                                                            |
| `selphid_component_tutorial_close_button_alt`   | Return to the previous tutorial                                                               |

#### Document and Country Selector

| Name                                          | Value                                |
| --------------------------------------------- | ------------------------------------ |
| `selphid_selector_title`                      | Complete your Onboarding             |
| `selphid_selector_country_label`              | Which country is your document from? |
| `selphid_selector_country_placeholder`        | Select a country                     |
| `selphid_selector_country_search_label`       | Choose a country                     |
| `selphid_selector_country_search_placeholder` | Search for a country                 |
| `selphid_selector_country_search_clear`       | Clear search                         |
| `selphid_selector_country_no_results`         | No results                           |
| `selphid_selector_document_label`             | Which document will you use?         |
| `selphid_selector_document_placeholder`       | Select a document                    |
| `selphid_selector_document_dialog_title`      | Choose a document                    |
| `selphid_selector_document_dialog_cancel`     | CANCEL                               |
| `selphid_selector_document_dialog_select`     | SELECT                               |
| `selphid_selector_continue`                   | Continue                             |
| `selphid_selector_type_id_card`               | Identity document                    |
| `selphid_selector_type_passport`              | Passport                             |
| `selphid_selector_type_drivers_license`       | Driver's license                     |
| `selphid_selector_type_foreign_card`          | Residence card                       |
| `selphid_selector_type_credit_card`           | Credit card                          |
| `selphid_selector_type_custom`                | Custom                               |
| `selphid_selector_type_visa`                  | Visa                                 |

### Animations <a href="#id-82-animaciones" id="id-82-animaciones"></a>

The component uses **Lottie** (`.json`) in both the *tip* and the *tutorials*.

To modify the SDK animations, include the files with **the same name** in the folder `res/raw/`

```
selphid_anim_tip_driver_h.json
selphid_anim_tip_driver_m.json
selphid_anim_tip_health.json
selphid_anim_tip_id_h.json
selphid_anim_tip_id_m.json
selphid_anim_tip_mrz.json
selphid_anim_tip_pass_h.json
selphid_anim_tip_pass_m.json

selphid_anim_tuto_driver_h_1.json
selphid_anim_tuto_driver_h_2.json
selphid_anim_tuto_driver_h_3.json
selphid_anim_tuto_driver_m_1.json
selphid_anim_tuto_driver_m_2.json
selphid_anim_tuto_driver_m_3.json

selphid_anim_tuto_id_h_1.json
selphid_anim_tuto_id_h_2.json
selphid_anim_tuto_id_h_3.json
selphid_anim_tuto_id_m_1.json
selphid_anim_tuto_id_m_2.json
selphid_anim_tuto_id_m_3.json

selphid_anim_tuto_pass_h_1.json
selphid_anim_tuto_pass_h_2.json
selphid_anim_tuto_pass_h_3.json
selphid_anim_tuto_pass_m_1.json
selphid_anim_tuto_pass_m_2
```
