For the complete documentation index, see llms.txt. This page is also available as Markdown.

Face Capture - Selphi

Version 2.3.X

Introduction

Face Capture is performed with the Selphi Plugin.

This component is responsible for capturing a user's selfie and subsequently extracting the most important facial features. Its main processes are:

  • Internal management of cameras and permissions.

  • Assistant in the user's face capture processes.

  • Generation of the templates with the facial features and the user's image.


Dependencies

Capacitor:

npm install @facephi/sdk-selphi-capacitor@<Version>
npm run build
npx cap sync

Android - Gradle:

implementation "com.facephi.androidsdk:selphi_component:$version"

iOS - CocoaPods:

Available methods

This component contains several methods that execute different functionalities:

Method

Description

startExtraction

Main controller of Facial Recognition

startExtraction method

Once the SDK has been started and a new operation has been created, the component can be launched. Any of its controllers can be used to execute its functionality.

Face Capture launch:

Basic configuration

To launch the current component, an object SelphiFaceConfiguration must be created, which will be the configuration of the component controller.

The basic configuration needed for this is as follows:

Advanced component configuration

Below are all the fields that are part of this class.

Selphi Configuration

Result reception

The launch will return the information in SelphiFaceResult format. It will be possible to distinguish between a successful launch and an unsuccessful one:

Selphi Result

Component Customization

In addition to the changes that can be made at the SDK level (which are explained in the document of Advanced settings), this specific component allows its own Customization.

Selphi - Component Customization

Last updated