Face Compare

This activity is used when we want to check the likelihood that two faces belong to
the same person.You will get a confidence score and thresholds to evaluate the
similarity. With Face Compare, you can easily verify a user against a reference photo.

Technical Reference

 

 

 

 

INPUT

ImagePath1: Specify the path of the first image.

ImagePath2: Specify the path of the second image.

Parameter1: Specify the type of file 1.

Parameter2: Specify the type of file 2.

 

 

 

 

 

 

MISC

Display Name: Displays the name of the activity. You can also customize the activity name to help troubleshoot issues faster. This name will be used for logging purposes.

SkipOnError: It specifies whether to continue executing the workflow even if it throws an error. This supports only Boolean value “True or False”. By default, it is set to “False.”

True: Continues the workflow to the next step

False: Stops the workflow and throws an error.

Version: It specifies the version of the FacePlusPlus feature in use

 

 

OUTPUT

Output: This is not a mandatory field. However, to see the result of the activity, a variable must be declared here.

Result: Declare a variable here to validate the activity. It accepts only Boolean value. This is not a mandatory field.

*Mandatory fields to execute the workflow

Use Case

The following activity illustrates on how we can use the face compare activity to
compare the details of two given images. Here we give the file path of two images 
to be compared and we get the output for the same.

Steps to execute the bot

1.      Drag and drop a FPP scope activity to the workflow.

2.      Enter the API key, API secret and end point.

3.      Drag and drop a face compare activity into the FPP scope.

4.      Click on the activity.

5.      Enter the path of the image file 1.

6.      Enter the path of the image file 2.

7.      Enter the parameter1 and parameter2.

8.      Enter the declared variable in the output box of the output segment. Here it is FC.

9.      Drag and drop a write log activity below the face compare activity.

10.   Enter the same variable declared above to the input string of the writelog feature.

11.   Enter the log level as “info.”

12.   Execute the activity.

13.   To view the detailed result of the activity, click on home---->logs---->open logs and
click on the required file to open.
 

The bot executes the activity and gives the confidence score for the comparison between two images.