Knowledge base

This is your online library of information about Yoti Age Scan.

Antispoofing - Background Image

Good to know...
This section is only relevant to retailers with a POS Terminal

This anti-spoofing method is useful for fixed camera installations (for example at an electronic point-of-sale terminal). It captures the empty background view from the camera, which can then be compared against all subsequent captured images for age estimation requests. Yoti runs a check to confirm that the original background is still present in each subsequent capture, rejecting images where it does not.

Background image technical process

Background image technical process

There are 2 steps required to perform background image checks:

  1. Submit a background image, this will be used in each age estimation request to ensure the backgrounds match.
  2. Submit the photo for age estimation, with the associated background ID.

Both of these steps can be achieved using the SDK, the following assumes you have already installed the SDK as per the steps detailed in the Get age estimation.

Get the background image

Please note the withEndpoint should be set to /backgrounds.

Javascript
PHP
Python
Java
Go
C#
Ruby
Copy

The request payload should be in the following format: This JSON string will be the data parameter in the withPayload above code snippet.

JSON
Copy

The response will be as follows:

JSON
Copy

Get Age Estimation with anti-spoofing

Please note the withEndpoint should be set to /checks

Javascript
PHP
Python
Java
Go
C#
Ruby
Copy

The request payload should be in the following format: This JSON string will be the data parameter in the withPayload above code snippet. Notice the addition of the background_id which would be obtained from step 1.

JSON
Copy

The response received from the API will be as follows:

JSON
Copy

For more details see the API references here.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard