#[non_exhaustive]pub struct CompareFacesOutput {
pub source_image_face: Option<ComparedSourceImageFace>,
pub face_matches: Option<Vec<CompareFacesMatch>>,
pub unmatched_faces: Option<Vec<ComparedFace>>,
pub source_image_orientation_correction: Option<OrientationCorrection>,
pub target_image_orientation_correction: Option<OrientationCorrection>,
/* private fields */
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source_image_face: Option<ComparedSourceImageFace>The face in the source image that was used for comparison.
face_matches: Option<Vec<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.
unmatched_faces: Option<Vec<ComparedFace>>An array of faces in the target image that did not match the source image face.
source_image_orientation_correction: Option<OrientationCorrection>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.
target_image_orientation_correction: Option<OrientationCorrection>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.
Implementations§
source§impl CompareFacesOutput
impl CompareFacesOutput
sourcepub fn source_image_face(&self) -> Option<&ComparedSourceImageFace>
pub fn source_image_face(&self) -> Option<&ComparedSourceImageFace>
The face in the source image that was used for comparison.
sourcepub fn face_matches(&self) -> &[CompareFacesMatch]
pub fn face_matches(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .face_matches.is_none().
sourcepub fn unmatched_faces(&self) -> &[ComparedFace]
pub fn unmatched_faces(&self) -> &[ComparedFace]
An array of faces in the target image that did not match the source image face.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .unmatched_faces.is_none().
sourcepub fn source_image_orientation_correction(
&self
) -> Option<&OrientationCorrection>
pub fn source_image_orientation_correction( &self ) -> Option<&OrientationCorrection>
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.
sourcepub fn target_image_orientation_correction(
&self
) -> Option<&OrientationCorrection>
pub fn target_image_orientation_correction( &self ) -> Option<&OrientationCorrection>
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.
source§impl CompareFacesOutput
impl CompareFacesOutput
sourcepub fn builder() -> CompareFacesOutputBuilder
pub fn builder() -> CompareFacesOutputBuilder
Creates a new builder-style object to manufacture CompareFacesOutput.
Trait Implementations§
source§impl Clone for CompareFacesOutput
impl Clone for CompareFacesOutput
source§fn clone(&self) -> CompareFacesOutput
fn clone(&self) -> CompareFacesOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CompareFacesOutput
impl Debug for CompareFacesOutput
source§impl PartialEq for CompareFacesOutput
impl PartialEq for CompareFacesOutput
source§fn eq(&self, other: &CompareFacesOutput) -> bool
fn eq(&self, other: &CompareFacesOutput) -> bool
self and other values to be equal, and is used
by ==.source§impl RequestId for CompareFacesOutput
impl RequestId for CompareFacesOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.