> 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/editor-1/facephi-onboarding/mobile/android/widgets/documento.md).

# Document

**Document Capture Widget**

### **Introduction**[​](#introducción) <a href="#introduccion" id="introduccion"></a>

SelphID is a Widget that allows capturing and validating a user's Identity document.

As a result, the authenticity of the document is verified using algorithms and security protocols. All extracted data can be consulted at any time from Facephi Platform.

### **Requirements and installation**[​](#requisitos-e-instalación) <a href="#requisitos-e-instalacion" id="requisitos-e-instalacion"></a>

The Widget is compatible with Android 6 or later.

### **Capture a document**[​](#capturar-un-documento) <a href="#capturar-un-documento" id="capturar-un-documento"></a>

{% columns %}
{% column width="41.66666666666667%" %}

<figure><img src="https://865101184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUo71Qbj6jZQDavjc0U5X%2Fuploads%2Fgit-blob-65af1e92dad504add1ebd5dc2729f139d2d94414%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}
The first screen is a tutorial that explains how to perform Document Capture.

The animation shows how to interact with the Widget. The text gives details on how to carry out this step correctly.

To continue, press button (2). To go back, press icon (1).

1. Back button
2. Continue button
   {% endcolumn %}
   {% endcolumns %}

{% columns %}
{% column width="41.66666666666667%" %}

<figure><img src="https://865101184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUo71Qbj6jZQDavjc0U5X%2Fuploads%2Fgit-blob-f3567da1d45bdcc0ee4598b16da6d44171659251%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}
If you have not previously granted the app camera permissions, a message will appear so you can accept those permissions. Camera access is necessary to capture the document or face, among other things.

1. Deny button
2. Button to allow access
   {% endcolumn %}
   {% endcolumns %}

{% columns %}
{% column width="41.66666666666667%" %}

<figure><img src="https://865101184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUo71Qbj6jZQDavjc0U5X%2Fuploads%2Fgit-blob-bff30a107be87f24d59b2c8e5cdc5830ed167d10%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}
Once in the widget, a text appears giving you instructions for the step to perform. In this case, your camera has been activated and you must focus on the front side of your document. The document must fit inside the frame (3), without the edges of the document extending beyond the frame. If the lighting and sharpness conditions are adequate, the photo will be taken automatically.

If you have questions or difficulties with this step, press the information button (2) and a tutorial that may help you will open.

To exit the widget without taking the capture, press icon (1).

1. Close button
2. Information button
3. Frame to align the document
   {% endcolumn %}
   {% endcolumns %}

{% columns %}
{% column width="41.66666666666667%" %}

<figure><img src="https://865101184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUo71Qbj6jZQDavjc0U5X%2Fuploads%2Fgit-blob-cb4abb8fb786c3df4abed4e62e96be28e92566ac%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}
This is the document capture tutorial. It is accessed by tapping the information icon (seen on the previous screen). Here you are shown some tips on how to place the document or what to keep in mind for the capture to be taken. You can move through it by swiping right or left (3).

To skip the tutorial, press the button (2). To return to document capture, press the icon (1).

1. Back button
2. Skip button
3. Page indicator
   {% endcolumn %}
   {% endcolumns %}

{% columns %}
{% column width="41.66666666666667%" %}

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

<figure><img src="https://865101184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUo71Qbj6jZQDavjc0U5X%2Fuploads%2Fgit-blob-d098ce7d207294c6da8bf17d7c1556f42edd7e73%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}
The widget will show you in real time whether the capture was successful or whether there has been a problem.

**If the capture was not performed (1)**, retry this step until the widget takes the photo. The information button or error diagnostics can be very helpful for this step.

**If the capture was successful (2)**, a confirmation message will appear. Repeat the same step, this time with the back side of your document.
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column width="41.66666666666667%" %}

<figure><img src="https://865101184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUo71Qbj6jZQDavjc0U5X%2Fuploads%2Fgit-blob-7cac944001997bdc12db0075431e81935e42fe26%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}
*Optional screen. It can be enabled from Settings.*

The widget has captured the document, and this preview screen is shown. Here you must check that the document is fully visible and that the data is legible.

If the photo is blurry, or data is hidden or cut off, we recommend pressing button (2) to retry the photo. A bad capture can lead to a poor interpretation of the data and having to repeat the process again.

If the photo is sharp and the data is easy to read, press button (3) to continue with the next step.

To exit and not continue, press icon (1). Skipping this step will take you to the previous step.

1. Close button
2. Retake button
3. Continue button
   {% endcolumn %}
   {% endcolumns %}

{% columns %}
{% column width="41.66666666666667%" %}

<figure><img src="https://865101184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUo71Qbj6jZQDavjc0U5X%2Fuploads%2Fgit-blob-45e57693199914c4462c887c12dcd09f6a031c53%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}
Now capture the back side of the document. The steps and the instructions are the same as for capturing the front side of the document.

Once the photo has been taken, you will need to review the capture preview to validate the photo or retake it. If it is validated, you will have completed the Document Capture process.
{% endcolumn %}
{% endcolumns %}

### **Errors**[​](#errores) <a href="#errores" id="errores"></a>

#### **Allowed attempts**[​](#intentos-permitidos) <a href="#intentos-permitidos" id="intentos-permitidos"></a>

{% columns %}
{% column width="41.66666666666667%" %}

<figure><img src="https://865101184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUo71Qbj6jZQDavjc0U5X%2Fuploads%2Fgit-blob-a07423cc422c6e315de09cd1e099869cac6563d2%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}
For security reasons, there is a limit on the number of allowed attempts to perform certain actions. If this error appears, it is because you have made X consecutive unsuccessful attempts. You must wait for the time to expire before trying this step again.

By pressing button (2) you go back to the widget to retry this step. If you want to close this screen, press the icon (1).

1. Close button
2. Retake button
   {% endcolumn %}
   {% endcolumns %}

#### **Camera permissions**[​](#permisos-de-cámara) <a href="#permisos-de-camara" id="permisos-de-camara"></a>

{% columns %}
{% column width="41.66666666666667%" %}

<figure><img src="https://865101184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUo71Qbj6jZQDavjc0U5X%2Fuploads%2Fgit-blob-2d2b4136865dc0030374b8094bf9aa3e09db59e4%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}
Camera permission has previously been denied, but the Widget is trying to access it.

By pressing button (2) you will be directed to the app permissions so you can enable them. Otherwise, to close this error screen press icon (1).

1. Close button
2. Button to go to mobile permissions
   {% endcolumn %}
   {% endcolumns %}

#### **Update the application**[​](#actualizar-la-aplicación) <a href="#actualizar-la-aplicacion" id="actualizar-la-aplicacion"></a>

{% columns %}
{% column width="41.66666666666667%" %}

<figure><img src="https://865101184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUo71Qbj6jZQDavjc0U5X%2Fuploads%2Fgit-blob-8fcfa648aa790c68002de29043d6cf331a1bda05%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}
There is a new version of the application, and it needs to be updated. Usually, this is due to bug fixes or the implementation of improvements.

By pressing button (2) you will be directed to the download page to update the app. Conversely, to close this error screen press icon (1).

1. Close button
2. Button to refresh
   {% endcolumn %}
   {% endcolumns %}

#### **Technical issue**[​](#problema-técnico) <a href="#problema-tecnico" id="problema-tecnico"></a>

{% columns %}
{% column width="41.66666666666667%" %}

<figure><img src="https://865101184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUo71Qbj6jZQDavjc0U5X%2Fuploads%2Fgit-blob-1c12d7b7f9b49507638b185970fa91ade5afae05%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}
An internal error has occurred in the app and it is necessary to restart the last step for correct registration.

By pressing button (2) you will retry this step. Otherwise, to close this error screen, press icon (1).

1. Close button
2. Retake button
   {% endcolumn %}
   {% endcolumns %}

#### **Time exceeded**[​](#tiempo-superado) <a href="#tiempo-superado" id="tiempo-superado"></a>

{% columns %}
{% column width="41.66666666666667%" %}

<figure><img src="https://865101184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUo71Qbj6jZQDavjc0U5X%2Fuploads%2Fgit-blob-721c0280c7c38a032c6e8859655f82d84ea28dc0%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="58.33333333333333%" %}
The maximum time for the widget to perform the capture has been exceeded.

The most likely case is that the necessary conditions for the widget to take an appropriate photo were not met.

Retry this step following the instructions shown on the screen, or tap the information icon (if any) to receive tips.

1. Close button
2. Retake button
   {% endcolumn %}
   {% endcolumns %}

#### **Inactivity**[​](#inactividad) <a href="#inactividad" id="inactividad"></a>

{% columns %}
{% column width="41.66666666666667%" %}

<figure><img src="https://865101184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUo71Qbj6jZQDavjc0U5X%2Fuploads%2Fgit-blob-bb28137ade5494c8dc0a373b6f93b181752fae22%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}
The application does not detect movement. It may be because the widget was started, but has been inactive for some time.

Retry this step following the instructions shown on the screen, or tap the information icon (if any) to receive tips.

1. Close button
2. Retake button
   {% endcolumn %}
   {% endcolumns %}

#### **The document has glare**[​](#el-documento-tiene-brillos) <a href="#el-documento-tiene-brillos" id="el-documento-tiene-brillos"></a>

{% columns %}
{% column width="41.66666666666667%" %}

<figure><img src="https://865101184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUo71Qbj6jZQDavjc0U5X%2Fuploads%2Fgit-blob-f02597f5151eb87390e9cf55e6b090ba9f507061%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}
There are reflections on the document that cover the data, and the widget cannot take the photo because it cannot read all the data correctly.

Retry this step following the instructions shown on the screen, or tap the information icon (if any) to receive tips.

1. Close button
2. Retake button
   {% endcolumn %}
   {% endcolumns %}
