> 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

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 camera and permission management.
* 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**is used. The **required** dependencies must be installed beforehand (by adding them to the project's Podfile):

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

To install the component **SelphiIAD**, add the corresponding dependency to the `Podfile` in the project, 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 are installed first.

```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, add the following entry to the **Info.plist**:

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