FaceDetection
When to use the FaceDetection Activity
FaceDetection activity provides the DetectFaces 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, and lists the JSON for all detected facial attributes.
Figure 1
Drag and drop an AmazonScope drop zone from the AmazonRekognition package on the canvas. Proceed to provide the AccessKeyID and SecretAccessKey in the pertaining fields. Select the RegionEndPoint that you have signed up for.
DisplayName will be auto populated for all activities.
Please Note: AWS AccessKeyID and AWS SecretAccessKey will be provided at the time of registration. This is specific to the Endpoint region, which is also selected at the time of registration.
Important Point: Do not share this unique key with anyone and this is not for public viewing as well.
Figure 2
Drag and drop a FaceDetection activity inside the AmazonScope drop zone. Proceed to select All ( if you want to get all the attributes) or Default (to get default values )from the GetAttributes dropdown. Specify the local ImagePath to detect faces. Create a variable in the Result field.
Figure 3
Drag and drop a WriteLog activity from the NotificationAutomation package. Provide the InputString and set the LogLevel.
Figure 4
Execute the workflow.
Figure 5
The provided image is as follows:
Figure 6
The detected result will be displayed in the output window and will contain details of the face, such as age range, gender, etc., with a confidence score.
Figure 7