Compare Two Faces
AWS
AWS
Compare Two Faces
Compare a face in the source image with faces in the target image using AWS Rekognition.
ActionAI Tool
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
sourceImage | file | Required | Image (JPEG or PNG) containing the source face |
targetImage | file | Required | Image (JPEG or PNG) containing the target face(s) to compare against |
similarityThreshold | number | Optional | Minimum similarity (0-100) to consider a face match. Default 80. |
Outputs
| Name | Type | Description |
|---|---|---|
tenantIntegrationId | text | The integration used to execute this action |
success | yes/no | Whether the comparison completed successfully |
faceMatchCount | number | Number of faces that matched above the similarity threshold |
unmatchedFaceCount | number | Number of faces in the target image that did not match |
faceMatches | array of object | Array of matched faces, each with a similarity score and detected face details. |
similarity | number | Similarity score (0-100) between the source and target face |
face | object | Detected face details from the target image: boundingBox (width/top/left/height, normalized 0-1), confidence (0-100), pose (yaw/roll/pitch), quality (sharpness/brightness), and landmarks (array of {x, y, type} points such as eyeLeft, nose). |
boundingBox | object | Bounding box of the face (normalized 0-1) |
width | number | Width |
top | number | Top |
left | number | Left |
height | number | Height |
confidence | number | Confidence that the bounding box contains a face (0-100) |
unmatchedFaces | array of object | Faces in the target image that did not match the source face. Each item has the same shape as faceMatches[].face: boundingBox, confidence, pose, quality, and landmarks. |
boundingBox | object | Bounding box of the face (normalized 0-1) |
width | number | Width |
top | number | Top |
left | number | Left |
height | number | Height |
confidence | number | Confidence that the bounding box contains a face (0-100) |
sourceImageFace | object | The face detected in the source image (bounding box and confidence) |
boundingBox | object | Bounding box of the source face (normalized 0-1) |
width | number | Width |
top | number | Top |
left | number | Left |
height | number | Height |
confidence | number | Confidence that the bounding box contains a face (0-100) |
sourceImageOrientationCorrection | text | Orientation correction applied to the source image (e.g. ROTATE_90), or empty if none |
targetImageOrientationCorrection | text | Orientation correction applied to the target image (e.g. ROTATE_90), or empty if none |