What is Face Compare?

Face Compare compares two incoming face images, determines whether the two faces are the same person, and outputs the comparison results of the two face images. It supports incoming live face images and ID card face images.

Accessibility modes

Face Compare provides an API access mode for you to access the ZOLOZ service. For more information, see Understand integration modes.

Use flow

The use flow of Face Compare is shown below:

Picture 8.png

Figure 1: Face compare use flow illustration

  1. Import face images
    Call the API to pass in two face images. The requirements for the incoming face images are as follows:
    • Image format: Base64 encoded image in JPG format.
    • Image size: The size of the image should not exceed 10MB.
    • Multiple face situation: If there are multiple faces in the picture, the largest face will be selected for face comparison.
  1. Compare face information
    The algorithm extracts the face feature data from the incoming face images and calculates the similarity between the face feature data of the two images to derive the face similarity score. The higher the face similarity score the higher the similarity. When the face similarity score is higher than the threshold set by ZOLOZ, the algorithm determines that the two faces belong to the same person.
  2. Face Compare results
    By comparing the two incoming face images, the Face Compare API will return the similarity score of the two faces and determine whether these two faces belong to the same person.
    • Face similarity score: Ranges between 0~100; the higher the score, the higher the similarity.
    • Face comparison result: If the face similarity score is higher than the threshold set by ZOLOZ, the algorithm will determine that the two faces belong to the same person. Otherwise, it will determine that they are not of the same person. The default threshold has a false recognition rate of 1 in 100,000.

Face compare results

Field name

Meaning

Description

samePerson

Face matching results

The face matching result will be returned as either true/false:

  • true: If the face matching score ≥the threshold set by ZOLOZ, the algorithm determines that the two faces belong to the same person and the face matching passes.
  • false: If the face matching score < the threshold set by ZOLOZ, the algorithm decides that the two faces do not belong to the same person and the face matching fails.

score

Face matching score

Similarity score for face matching.

  • When the face matching score ≥the threshold set by ZOLOZ, face matching passes.
  • When the face matching score < the threshold set by ZOLOZ, face matching fails.