Compare Faces
UiPath.AmazonRekognition.Activities.CompareFaces
The Compare Faces activity uses the CompareFaces API to compare the most prominent face in the source input image (SourceImagePath or SourceImageURL) to each of the 100 largest faces detected in the target input image (TargetImagePath or TargetImageURL).
In response, the activity returns an array of face matches ordered by similarity score in descending order. For each face match, the response provides a bounding box of the face and confidence value (a score that indicates how closely the faces match).
Summary
Dependencies
| Dependency | Details |
|---|---|
| Packages | UiPath.Amazon.Rekognition.Activities |
| Activities | Amazon Scope |
Attributes
| Attribute | Details |
|---|---|
| Inputs (Variables) | String Applies to property: SourceImagePath,SourceImageURL,TargetImagePath, and TargetImageURL |
| Outputs (Variables) | FaceMatch[] Applies to property: MatchingFaces |
| API used | Amazon Rekognition - CompareFaces |
| Examples | Quickstart |
Properties
The values for the following properties are specified when adding this activity to your project in UiPath Studio.

Common
DisplayName
The display name of the activity.
| Attributes | Details |
|---|---|
| Type | String |
| Required | Yes |
| Default value | Compare Faces |
| Allowed values | Enter a String or String variable. |
| Notes | N/A |
Input
SourceImagePath
The path to a local image that includes the face you want compared to the target input image.
| Attributes |
Details |
|---|---|
| Type |
|
| Required |
Yes (if the SourceImageURL is empty) |
| Default value |
Empty |
| Allowed values |
Enter a String or String variable. |
| Notes |
|
SourceImageURL
The path to a remote image that includes the face you want compared to the target input image.
| Attributes |
Details |
|---|---|
| Type |
|
| Required |
Yes (if the SourceImagePath is empty) |
| Default value |
Empty |
| Allowed values |
Enter a String or String variable. |
| Notes |
|
TargetImagePath
The path to a local image that includes the faces you want compared with the source input image.
| Attributes |
Details |
|---|---|
| Type |
|
| Required |
Yes (if the TargetImageURL is empty) |
| Default value |
Empty |
| Allowed values |
Enter a String or String variable. |
| Notes |
|
TargetImageURL
The path to a remote image that includes the faces you want compared with the source input image.
| Attributes |
Description |
|---|---|
| Type |
|
| Required |
Yes (if the TargetImagePath is empty) |
| Default value |
Empty |
| Allowed values |
Enter a String or String variable. |
| Notes |
|
Misc
Private
If selected, the values of variables and arguments are no longer logged at Verbose level.
| Attributes | Description |
|---|---|
| Type | Checkbox |
| Required | No |
| Default value | Not Selected |
| Allowed values | Selected or Not Selected |
| Notes | N/A |
Options
Confidence
The minimum confidence value (i.e., percentage of similarity) to consider the faces to be a match.
| Attributes |
Description |
|---|---|
| Type |
|
| Required |
No |
| Default value |
Empty |
| Allowed values |
Enter a number between 0 and 1 to indicate the percentage of similarity (e.g., enter .8 if you want the similarity to be 80%). |
| Notes |
|
Output
MatchingFaces
An array of faces in the target image that match the faces in the source image.
| Attributes |
Details |
|---|---|
| Type |
UiPath.Amazon.Rekognition.Models.FaceMatch[] |
| Required |
No (recommended if you plan to use the output data in subsequent activities) |
| Default value |
Empty |
| Allowed values |
Enter your value as a FaceMatch[] variable. |
| Notes |
|