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

# Face Capture with IAD

## 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.

***

## 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)
```
