> 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 Injection Attack Detection for video injection attacks is performed through the **Selphi IAD Component**.

This component is responsible for capturing a user's selfie and extracting its most relevant facial features, incorporating a set of preventive security controls designed to detect untrusted environments. During the process, the following steps are performed, among others:

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

In the section [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, it is used **CocoaPods**. The dependencies **required** that must have been installed beforehand (by adding them to the project's Podfile) are:

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

To install the component **SelphiIAD**, add the corresponding dependency in the `Podfile` for the project, together with the SDK's required dependencies.

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

### Swift Package Manager (SPM)

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

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

To install the component **SelphiIAD**, include it in the project's 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 file **Info.plist**:

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

## Differences compared to standard Face Capture

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

* The SelphiIAD component has a different License than the standard component, so when you start using this dependency, **the integrator's License must be modified.**
* In the event of a correct capture, the data model `SelphiResult` contains the parameter:
  * `iad` -> Information obtained in the analysis of video injection attacks prepared for sending 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)
