Struct aws_sdk_rekognition::types::Label
source · #[non_exhaustive]pub struct Label {
pub name: Option<String>,
pub confidence: Option<f32>,
pub instances: Option<Vec<Instance>>,
pub parents: Option<Vec<Parent>>,
pub aliases: Option<Vec<LabelAlias>>,
pub categories: Option<Vec<LabelCategory>>,
}
Expand description
Structure containing details about the detected label, including the name, detected instances, parent labels, and level of confidence.
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.name: Option<String>
The name (label) of the object or scene.
confidence: Option<f32>
Level of confidence.
instances: Option<Vec<Instance>>
If Label
represents an object, Instances
contains the bounding boxes for each instance of the detected object. Bounding boxes are returned for common object labels such as people, cars, furniture, apparel or pets.
parents: Option<Vec<Parent>>
The parent labels for a label. The response includes all ancestor labels.
aliases: Option<Vec<LabelAlias>>
A list of potential aliases for a given label.
categories: Option<Vec<LabelCategory>>
A list of the categories associated with a given label.
Implementations§
source§impl Label
impl Label
sourcepub fn confidence(&self) -> Option<f32>
pub fn confidence(&self) -> Option<f32>
Level of confidence.
sourcepub fn instances(&self) -> Option<&[Instance]>
pub fn instances(&self) -> Option<&[Instance]>
If Label
represents an object, Instances
contains the bounding boxes for each instance of the detected object. Bounding boxes are returned for common object labels such as people, cars, furniture, apparel or pets.
sourcepub fn parents(&self) -> Option<&[Parent]>
pub fn parents(&self) -> Option<&[Parent]>
The parent labels for a label. The response includes all ancestor labels.
sourcepub fn aliases(&self) -> Option<&[LabelAlias]>
pub fn aliases(&self) -> Option<&[LabelAlias]>
A list of potential aliases for a given label.
sourcepub fn categories(&self) -> Option<&[LabelCategory]>
pub fn categories(&self) -> Option<&[LabelCategory]>
A list of the categories associated with a given label.