> 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/ios-sdk/modulos/captura-facial-con-iad.md).

# Face Capture with IAD - Selphi

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

Face Capture with video Injection Attack Detection is performed through the **Selphi IAD Component**.

This component is responsible for capturing a user selfie and extracting the most relevant facial features, incorporating a set of preventive security controls aimed at detecting untrusted environments. During the process, the following steps are performed, among others:

* Internal management of cameras and permissions.
* Detection of spoofing attempts using videos or manipulated camera sources.
* Guided assistance during Face Capture.
* Generation of biometric templates and user images.

In the [Simplified Launch](/docs.facephi-en/sdks/sdk-mobile/ios-sdk/inicializacion/lanzamiento-simplificado.md) the basic steps for SDK integration are described. This page details the specific information needed to launch and configure this component.

***

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

### CocoaPods

Facephi libraries are distributed remotely through dependency managers. On iOS, **CocoaPods**. the **mandatory** dependencies that must have been installed previously (by adding them to the project's Podfile file) are:

```swift
  pod 'FPHISDKMainComponent', '~> $VERSION'
```

To install the **SelphiIAD**component, add the corresponding dependency in the `Podfile` of the project, along with the SDK's mandatory dependencies.

```swift
  pod 'FPHISDKSelphiIADComponent', '~> $VERSION'
```

### Swift Package Manager (SPM)

If you use **SPM**, make sure the SDK's mandatory dependencies are previously installed.

```sh
//HTTPS
https://github.com/facephi-clienters/SDK-SdkPackage-SPM.git
//SSH
git@github.com:facephi-clienters/SDK-SdkPackage-SPM.git
```

To install the **SelphiIAD**, include it in the project modules.

```swift
//HTTPS
https://github.com/facephi-clienters/SDK-Selphi_IAD_Component-SPM.git
//SSH
git@github.com:facephi-clienters/SDK-Selphi_IAD_Component-SPM.git
```

***

## Permissions

In the client application where the components will be integrated, it is necessary to include the following element in the **Info.plist**:

```
Camera use must be allowed (Privacy - Camera Usage Description)
```

## Differences regarding standard Face Capture

The differences from the rest of the documentation of *Face Capture* can be summarized in two sections:

* The SelphiIAD component has a different License from the standard component, so when you start using this dependency, **the integrator's License must be modified.**
* In the case of a successful capture, the data model `SelphiResult` contains the parameter:
  * `iad` -> Information obtained in the analysis of video injection attacks prepared to be sent to the verification service.

[<br>](https://open-2v.gitbook.com/url/preview/site_wUp9i/soluciones-y-sdks/sdk-mobile/android-sdk/componentes-modulos/captura-facial)
