Face Comparison

The Identity Verification (IDV) service also provides a face comparison check that can be used to authenticate a user by using their selfie. This check does a AI comparison between live user selfie and the reference face image to return a confidence score.

Session specification

To use the Face comparison service, you have to create session specification with at least two checks - Liveness and Face Comparison. You can also set the maximum retries for liveness and manual check option for face comparison checks.

Javascript
Java
PHP
Python
C#
Go
Copy

Initialise the Yoti client

The included DocScan/IDV Client includes several helper methods to interact with the Yoti's API. You can initialise the client using your unique SDK ID and PEM file.

Javascript
Java
PHP
Python
C#
Go
Copy

Create a session

You can use the createSession method from the above client to create a Yoti session. Session specification needs to be passed as an argument. After the session is successfully created, you will get a Session ID that can be used to retrieve the Session configuration.

Javascript
Java
PHP
Python
C#
Go
Copy

Create a Face Capture resource

Before uploading the reference face image, you have to create a Face capture resource. To do this, a Requirement ID from the Face Capture requirements needs to retrieved. This can then be used to create a face capture resource. If successful, you will receive a Resource Id.

Javascript
Java
PHP
Python
C#
Go
Copy

Uploading a reference image

To do an accurate face comparison, a reference selfie image of the user is required. You have to get the contents of this image which can then be uploaded using the Doc Scan Client. You also have to pass in the Resource Id retrieved earlier.

Javascript
Java
PHP
Python
C#
Go
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard