AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Class: Aws::Rekognition::Types::CompareFacesResponse

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#face_matchesArray<Types::CompareFacesMatch>

An array of faces in the target image that match the source image face. Each CompareFacesMatch object provides the bounding box, the confidence level that the bounding box contains a face, and the similarity score for the face in the bounding box and the face in the source image.

Returns:



421
422
423
424
425
426
427
428
429
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 421

class CompareFacesResponse < Struct.new(
  :source_image_face,
  :face_matches,
  :unmatched_faces,
  :source_image_orientation_correction,
  :target_image_orientation_correction)
  SENSITIVE = []
  include Aws::Structure
end

#source_image_faceTypes::ComparedSourceImageFace

The face in the source image that was used for comparison.



421
422
423
424
425
426
427
428
429
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 421

class CompareFacesResponse < Struct.new(
  :source_image_face,
  :face_matches,
  :unmatched_faces,
  :source_image_orientation_correction,
  :target_image_orientation_correction)
  SENSITIVE = []
  include Aws::Structure
end

#source_image_orientation_correctionString

The value of SourceImageOrientationCorrection is always null.

If the input image is in .jpeg format, it might contain exchangeable image file format (Exif) metadata that includes the image's orientation. Amazon Rekognition uses this orientation information to perform image correction. The bounding box coordinates are translated to represent object locations after the orientation information in the Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.

Amazon Rekognition doesn’t perform image correction for images in .png format and .jpeg images without orientation information in the image Exif metadata. The bounding box coordinates aren't translated and represent the object locations before the image is rotated.

Returns:

  • (String)


421
422
423
424
425
426
427
428
429
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 421

class CompareFacesResponse < Struct.new(
  :source_image_face,
  :face_matches,
  :unmatched_faces,
  :source_image_orientation_correction,
  :target_image_orientation_correction)
  SENSITIVE = []
  include Aws::Structure
end

#target_image_orientation_correctionString

The value of TargetImageOrientationCorrection is always null.

If the input image is in .jpeg format, it might contain exchangeable image file format (Exif) metadata that includes the image's orientation. Amazon Rekognition uses this orientation information to perform image correction. The bounding box coordinates are translated to represent object locations after the orientation information in the Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.

Amazon Rekognition doesn’t perform image correction for images in .png format and .jpeg images without orientation information in the image Exif metadata. The bounding box coordinates aren't translated and represent the object locations before the image is rotated.

Returns:

  • (String)


421
422
423
424
425
426
427
428
429
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 421

class CompareFacesResponse < Struct.new(
  :source_image_face,
  :face_matches,
  :unmatched_faces,
  :source_image_orientation_correction,
  :target_image_orientation_correction)
  SENSITIVE = []
  include Aws::Structure
end

#unmatched_facesArray<Types::ComparedFace>

An array of faces in the target image that did not match the source image face.

Returns:



421
422
423
424
425
426
427
428
429
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 421

class CompareFacesResponse < Struct.new(
  :source_image_face,
  :face_matches,
  :unmatched_faces,
  :source_image_orientation_correction,
  :target_image_orientation_correction)
  SENSITIVE = []
  include Aws::Structure
end