Struct rusoto_rekognition::FaceDetail
source · [−]pub struct FaceDetail {Show 15 fields
pub age_range: Option<AgeRange>,
pub beard: Option<Beard>,
pub bounding_box: Option<BoundingBox>,
pub confidence: Option<f32>,
pub emotions: Option<Vec<Emotion>>,
pub eyeglasses: Option<Eyeglasses>,
pub eyes_open: Option<EyeOpen>,
pub gender: Option<Gender>,
pub landmarks: Option<Vec<Landmark>>,
pub mouth_open: Option<MouthOpen>,
pub mustache: Option<Mustache>,
pub pose: Option<Pose>,
pub quality: Option<ImageQuality>,
pub smile: Option<Smile>,
pub sunglasses: Option<Sunglasses>,
}
Expand description
Structure containing attributes of the face that the algorithm detected.
A FaceDetail
object contains either the default facial attributes or all facial attributes. The default attributes are BoundingBox
, Confidence
, Landmarks
, Pose
, and Quality
.
GetFaceDetection is the only Amazon Rekognition Video stored video operation that can return a FaceDetail
object with all attributes. To specify which attributes to return, use the FaceAttributes
input parameter for StartFaceDetection. The following Amazon Rekognition Video operations return only the default attributes. The corresponding Start operations don't have a FaceAttributes
input parameter.
-
GetCelebrityRecognition
-
GetPersonTracking
-
GetFaceSearch
The Amazon Rekognition Image DetectFaces and IndexFaces operations can return all facial attributes. To specify which attributes to return, use the Attributes
input parameter for DetectFaces
. For IndexFaces
, use the DetectAttributes
input parameter.
Fields
age_range: Option<AgeRange>
The estimated age range, in years, for the face. Low represents the lowest estimated age and High represents the highest estimated age.
beard: Option<Beard>
Indicates whether or not the face has a beard, and the confidence level in the determination.
bounding_box: Option<BoundingBox>
Bounding box of the face. Default attribute.
confidence: Option<f32>
Confidence level that the bounding box contains a face (and not a different object such as a tree). Default attribute.
emotions: Option<Vec<Emotion>>
The emotions that appear to be expressed on the face, and the confidence level in the determination. The API is only making a determination of the physical appearance of a person's face. It is not a determination of the person’s internal emotional state and should not be used in such a way. For example, a person pretending to have a sad face might not be sad emotionally.
eyeglasses: Option<Eyeglasses>
Indicates whether or not the face is wearing eye glasses, and the confidence level in the determination.
eyes_open: Option<EyeOpen>
Indicates whether or not the eyes on the face are open, and the confidence level in the determination.
gender: Option<Gender>
The predicted gender of a detected face.
landmarks: Option<Vec<Landmark>>
Indicates the location of landmarks on the face. Default attribute.
mouth_open: Option<MouthOpen>
Indicates whether or not the mouth on the face is open, and the confidence level in the determination.
mustache: Option<Mustache>
Indicates whether or not the face has a mustache, and the confidence level in the determination.
pose: Option<Pose>
Indicates the pose of the face as determined by its pitch, roll, and yaw. Default attribute.
quality: Option<ImageQuality>
Identifies image brightness and sharpness. Default attribute.
smile: Option<Smile>
Indicates whether or not the face is smiling, and the confidence level in the determination.
sunglasses: Option<Sunglasses>
Indicates whether or not the face is wearing sunglasses, and the confidence level in the determination.
Trait Implementations
sourceimpl Clone for FaceDetail
impl Clone for FaceDetail
sourcefn clone(&self) -> FaceDetail
fn clone(&self) -> FaceDetail
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FaceDetail
impl Debug for FaceDetail
sourceimpl Default for FaceDetail
impl Default for FaceDetail
sourcefn default() -> FaceDetail
fn default() -> FaceDetail
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for FaceDetail
impl<'de> Deserialize<'de> for FaceDetail
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<FaceDetail> for FaceDetail
impl PartialEq<FaceDetail> for FaceDetail
sourcefn eq(&self, other: &FaceDetail) -> bool
fn eq(&self, other: &FaceDetail) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FaceDetail) -> bool
fn ne(&self, other: &FaceDetail) -> bool
This method tests for !=
.
impl StructuralPartialEq for FaceDetail
Auto Trait Implementations
impl RefUnwindSafe for FaceDetail
impl Send for FaceDetail
impl Sync for FaceDetail
impl Unpin for FaceDetail
impl UnwindSafe for FaceDetail
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more