For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Face Capture

Introduction

Face capture is performed using the Selphi Component.

This component captures a selfie of the user and extracts their most relevant facial features. The process includes, among other things, the following steps:

  • Internal management of cameras and permissions.

  • Guided assistance during face capture.

  • Generation of biometric templates and user images.


Dependency

The component’s specific dependency is:

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

Available controllers

This component includes several controllers, each designed for a specific function.

Controller
Description

FSelphiController

Main facial recognition controller


Receiving face capture errors

Errors are returned as a 'SelphiError' object.

List of face capture errors:
  • SPI_ACTIVITY_RESULT_ERROR: The activity result is incorrect.

  • SPI_ACTIVITY_RESULT_MSG_ERROR: The activity result received in the msg is incorrect.

  • SPI_APPLICATION_CONTEXT_ERROR: The required application context is null.

  • SPI_BAD_EXTRACTOR_CONFIGURATION_ERROR: Widget: Incorrect extractor configuration.

  • SPI_CAMERA_PERMISSION_DENIED: The user denied the permissions.

  • SPI_CANCEL_BY_USER: The user canceled the process.

  • SPI_CANCEL_LAUNCH: A general SDK cancellation was performed.

  • SPI_COMPONENT_LICENSE_ERROR: The component license is invalid.

  • SPI_CONTROL_NOT_INITIALIZATED_ERROR: Widget: Initialization error.

  • SPI_EMPTY_LICENSE: The license String is empty.

  • SPI_EXTRACTION_LICENSE_ERROR: Widget: License error.

  • SPI_FETCH_DATA_ERROR: Error retrieving the result.

  • SPI_FLOW_ERROR: Error in the flow process.

  • SPI_HARDWARE_ERROR: Widget: Hardware error.

  • SPI_INITIALIZATION_ERROR: Initialization error.

  • SPI_MANAGER_NOT_INITIALIZED: The managers are null.

  • SPI_NO_DATA_ERROR: The input data is null.

  • SPI_OPERATION_NOT_CREATED: There is no operation in progress.

  • SPI_RESOURCES_NOT_FOUND: The resources zip file was not found.

  • SPI_SETTINGS_PERMISSION_ERROR: Widget: Permission error.

  • SPI_TEMPLATE_ERROR:

  • SPI_TIMEOUT: Timeout during the process.

  • SPI_UNEXPECTED_CAPTURE_ERROR: Widget: Capture error.

  • SPI_UNKNOWN_ERROR: Unknown error.

  • SPI_WIDGET_RESULT_DATA_ERROR: Error in the widget output data.

Last updated