> 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/products/idv-suite/flujos-and-integraciones/configuracion-tecnica-del-cliente/sdk-mobile/android-sdk/componentes-modulos/captura-de-documentos.md).

# Document Capture

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

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

This component is responsible for capturing Identity document images and analyzing the information obtained. During the process, among others, the following steps are performed:

* Internal management of cameras and permissions.
* Guided assistance during the 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.
* High-level configuration:
  * Countries.
  * Languages.
  * Document types.

***

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

The specific component 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**                      |
| ------------------ | ------------------------------------ |
| FSelphIDController | Main document recognition controller |

***

## Error handling <a href="#id-6-recepcion-del-resultado" id="id-6-recepcion-del-resultado"></a>

<details>

<summary>List of document capture errors:</summary>

* SPD\_ACTIVITY\_RESULT\_ERROR: The activity result is incorrect.
* SPD\_ACTIVITY\_RESULT\_MSG\_ERROR: The activity result received in the msg is incorrect.
* SPD\_APPLICATION\_CONTEXT\_ERROR: The required application context is null.
* SPD\_BAD\_EXTRACTOR\_CONFIGURATION\_ERROR: Widget: Incorrect extractor configuration
* SPD\_CAMERA\_PERMISSION\_DENIED: The user has denied the permissions.
* SPD\_CANCEL\_BY\_USER: The user has canceled the process.
* SPD\_CANCEL\_LAUNCH: A general cancellation of the SDK has been made.
* SPD\_COMPONENT\_LICENSE\_ERROR: The component License is not correct.
* SPD\_CONTROL\_NOT\_INITIALIZATED\_ERROR: Widget: Initialization error
* SPD\_EMPTY\_LICENSE: The License string is empty.
* SPD\_EXTRACTION\_LICENSE\_ERROR: Widget: License error
* SPD\_FETCH\_DATA\_ERROR: Error in collecting the result.
* SPD\_FLOW\_ERROR: Error in the flow process.
* SPD\_HARDWARE\_ERROR: Widget: Hardware error
* SPD\_INITIALIZATION\_ERROR: Initialization error.
* SPD\_MANAGER\_NOT\_INITIALIZED: The managers are null.
* SPD\_MOVE\_FAIL: The user has not moved as specified in the process.
* SPD\_NO\_DATA\_ERROR: The input data are null.
* SPD\_OPERATION\_NOT\_CREATED: There is no operation in progress.
* SPD\_RESOURCES\_NOT\_FOUND: The resources zip was not found
* SPD\_SETTINGS\_PERMISSION\_ERROR: Widget: Permission error
* SPD\_TIMEOUT: Timeout in the process.
* SPD\_UNEXPECTED\_CAPTURE\_ERROR: Widget: Capture error
* SPD\_UNKNOWN\_ERROR: Unknown error
* SPD\_WIDGET\_RESULT\_DATA\_ERROR: Error in the Widget output data

</details>
