> 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

This component requires iOS 13 or later.

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

Face Capture with video injection attack detection is performed using the **Selphi IAD Component**.

This component captures a selfie of the user and extracts their most relevant facial features, incorporating a set of preventive security controls designed to detect untrusted environments. The process includes, among other steps:

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

The [Simplified Launch](https://docs.facephi.com/docs.facephi-en/sdks/sdk-mobile/ios-sdk/inicializacion/lanzamiento-simplificado.md) section describes the basic steps for integrating the SDK. This page details the specific information required to launch and configure this component.

***

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

### CocoaPods

Facephi libraries are distributed remotely using dependency managers. On iOS, **CocoaPods** is used. The **required** dependencies, which must be installed beforehand (by adding them to the project's Podfile), are:

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

To install the **SelphiIAD**component, add the corresponding dependency to the project's `Podfile` , along 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 have already been 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**component, 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, the following item must be added to the **Info.plist**:

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

## Differences from standard Face Capture

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

* The SelphiIAD component has a different license from the standard component, so when you start using this dependency, **you must update the integrator's license.**
* If the capture is successful, the `SelphiResult` data model contains the parameter:
  * `iad` -> Information obtained from the video injection attack analysis, prepared for submission 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)
