Skip to content

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
sourceImagefileRequiredImage (JPEG or PNG) containing the source face
targetImagefileRequiredImage (JPEG or PNG) containing the target face(s) to compare against
similarityThresholdnumberOptionalMinimum similarity (0-100) to consider a face match. Default 80.

Outputs

Name Type Description
tenantIntegrationIdtextThe integration used to execute this action
successyes/noWhether the comparison completed successfully
faceMatchCountnumberNumber of faces that matched above the similarity threshold
unmatchedFaceCountnumberNumber of faces in the target image that did not match
faceMatchesarray of objectArray of matched faces, each with a similarity score and detected face details.
similaritynumberSimilarity score (0-100) between the source and target face
faceobjectDetected 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).
boundingBoxobjectBounding box of the face (normalized 0-1)
widthnumberWidth
topnumberTop
leftnumberLeft
heightnumberHeight
confidencenumberConfidence that the bounding box contains a face (0-100)
unmatchedFacesarray of objectFaces 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.
boundingBoxobjectBounding box of the face (normalized 0-1)
widthnumberWidth
topnumberTop
leftnumberLeft
heightnumberHeight
confidencenumberConfidence that the bounding box contains a face (0-100)
sourceImageFaceobjectThe face detected in the source image (bounding box and confidence)
boundingBoxobjectBounding box of the source face (normalized 0-1)
widthnumberWidth
topnumberTop
leftnumberLeft
heightnumberHeight
confidencenumberConfidence that the bounding box contains a face (0-100)
sourceImageOrientationCorrectiontextOrientation correction applied to the source image (e.g. ROTATE_90), or empty if none
targetImageOrientationCorrectiontextOrientation correction applied to the target image (e.g. ROTATE_90), or empty if none