FaceDetection activity provides the Detect Faces operation that looks for key facial features
such as eyes, nose,and mouth to detect faces in an input image. It will return the estimated
age range for detected faces, gender confidence, gender value, beard value.
Technical Reference
INPUT |
GetAttributes: There are two options ALL and Default. Choose ALL to get the value of all the features. |
|
ImagePath: Choose the path of the image file which has to be processed. |
||
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 AmazonRekognition feature in use |
||
OUTPUT |
Output: This is not a mandatory field. However, to see the output of the face detected declare a variable 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 face detection activity from
the AmazonRekognition feature to derive the features match percentage of the
image file uploaded.
Steps to execute the bot
1. Drag and drop an amazon scope activity.
2. Enter the Access key ID, region end point and secret access key.
3. Drag and drop a face detection activity into the amazon scope
4. Click on the activity and choose ALL from the get attributes drop down to derive
all the features from the image.
5. Enter the file path of the image which has to be processed
6. Enter the declared variable in the output box to view the result. Here it is FD
7. Drag and drop a write log activity below the amazon scope.
8. Enter the same declared variable in the input string.
9. Enter the log level as “Info.”
10. Execute the activity.
The bot executes the activity and gives the match percentage of the features.