Add Face To Faceset

This activity is used to add the generated face tokens from face detection activity to the
generated face token set from the create face set activity.

Technical Reference

 

 

 

 

INPUT

FaceSetToken: Enter the faceset token generated from the create face set activity.

FaceTokens: Enter the variable declared for the face tokens.

Parameter1: Specify whether you are going to add the faceset token or Outer ID.

 

 

 

 

 

 

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 view the output 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 field to execute the workflow

Use Case

The following activity illustrates on how we can use the add face to faceset activity
to add a face token to a faceset token. Here we are adding one face token to an
existing faceset token which already has 3 images in it.

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 Add face to faceset activity into the FPP scope.

4.      Click on the activity.

5.      Enter the face set token generated from the create faceset activity.

6.      Enter a variable in the variable box of the variables segment with type
List<String> to which the face tokens are added to the face tokens box.
Here it is “face.”

7.      Declare a variable in the output box of the output segment to view the results.
 Here it is “Add.”

8.      Drag and drop a writelog activity below the add face to face set activity.

9.      Enter the same variable declared in the output box of the output segment
 to the input string of the write log feature. Enter the log level as “info.”

10.   Execute the activity.

11.   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 result as face added “1”, face
count”4”, which means the faceset token already has three faces and we
have added another face, so the total count is 4.