Struct aws_sdk_rekognition::types::ComparedFace
source · #[non_exhaustive]pub struct ComparedFace {
pub bounding_box: Option<BoundingBox>,
pub confidence: Option<f32>,
pub landmarks: Option<Vec<Landmark>>,
pub pose: Option<Pose>,
pub quality: Option<ImageQuality>,
pub emotions: Option<Vec<Emotion>>,
pub smile: Option<Smile>,
}Expand description
Provides face metadata for target image faces that are analyzed by CompareFaces and RecognizeCelebrities.
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.bounding_box: Option<BoundingBox>Bounding box of the face.
confidence: Option<f32>Level of confidence that what the bounding box contains is a face.
landmarks: Option<Vec<Landmark>>An array of facial landmarks.
pose: Option<Pose>Indicates the pose of the face as determined by its pitch, roll, and yaw.
quality: Option<ImageQuality>Identifies face image brightness and sharpness.
emotions: Option<Vec<Emotion>>The emotions that appear to be expressed on the face, and the confidence level in the determination. Valid values include "Happy", "Sad", "Angry", "Confused", "Disgusted", "Surprised", "Calm", "Unknown", and "Fear".
smile: Option<Smile>Indicates whether or not the face is smiling, and the confidence level in the determination.
Implementations§
source§impl ComparedFace
impl ComparedFace
sourcepub fn bounding_box(&self) -> Option<&BoundingBox>
pub fn bounding_box(&self) -> Option<&BoundingBox>
Bounding box of the face.
sourcepub fn confidence(&self) -> Option<f32>
pub fn confidence(&self) -> Option<f32>
Level of confidence that what the bounding box contains is a face.
sourcepub fn landmarks(&self) -> &[Landmark]
pub fn landmarks(&self) -> &[Landmark]
An array of facial landmarks.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .landmarks.is_none().
sourcepub fn pose(&self) -> Option<&Pose>
pub fn pose(&self) -> Option<&Pose>
Indicates the pose of the face as determined by its pitch, roll, and yaw.
sourcepub fn quality(&self) -> Option<&ImageQuality>
pub fn quality(&self) -> Option<&ImageQuality>
Identifies face image brightness and sharpness.
sourcepub fn emotions(&self) -> &[Emotion]
pub fn emotions(&self) -> &[Emotion]
The emotions that appear to be expressed on the face, and the confidence level in the determination. Valid values include "Happy", "Sad", "Angry", "Confused", "Disgusted", "Surprised", "Calm", "Unknown", and "Fear".
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .emotions.is_none().
source§impl ComparedFace
impl ComparedFace
sourcepub fn builder() -> ComparedFaceBuilder
pub fn builder() -> ComparedFaceBuilder
Creates a new builder-style object to manufacture ComparedFace.
Trait Implementations§
source§impl Clone for ComparedFace
impl Clone for ComparedFace
source§fn clone(&self) -> ComparedFace
fn clone(&self) -> ComparedFace
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ComparedFace
impl Debug for ComparedFace
source§impl PartialEq for ComparedFace
impl PartialEq for ComparedFace
source§fn eq(&self, other: &ComparedFace) -> bool
fn eq(&self, other: &ComparedFace) -> bool
self and other values to be equal, and is used
by ==.