Reference image
The face match check can also be used to match or authenticate a user by using an existing facial image (selfie)—for example, one previously obtained from a liveness check.
This check uses AI to compare the portrait from the ID document with the reference facial image and returns a confidence score.
Configure face match
Before triggering the face match check, you have to create an IDV session configured with a Face Match check. Additionally, a reference face image has to be uploaded against which the ID document portrait will be compared.
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.
Create a session
You can use the createSession method from the above client to create a Yoti session. The 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.
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.
Upload a reference image
To do accurate face match, a reference facial 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
Client-side view
The next step is to load the Yoti client-side SDK. To do this, you need the below parameters generated with the session creation request above:
Session ID
Session Token
We then utilise these to construct a Web URL which loads the Yoti Client SDK. The URL is in the following format:
Once the above URL launches in a web browser, it will take the user through the document capture flow. For more detailed steps, please refer to the Launch the user view page.
Retrieve results
Once a session has been completed, the associated checks' results and resources can be retrieved using the session ID. Each check would contain a recommendation and a breakdown. The resources however are not directly included in the results, but contain a media ID. This can be used to fetch the actual media resource.
Retrieve checks
Retrieve media
Got a question? Contact us here.