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) -> &[Instance]
pub fn instances(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .instances.is_none().
sourcepub fn parents(&self) -> &[Parent]
pub fn parents(&self) -> &[Parent]
The parent labels for a label. The response includes all ancestor labels.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .parents.is_none().
sourcepub fn aliases(&self) -> &[LabelAlias]
pub fn aliases(&self) -> &[LabelAlias]
A list of potential aliases for a given label.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .aliases.is_none().
sourcepub fn categories(&self) -> &[LabelCategory]
pub fn categories(&self) -> &[LabelCategory]
A list of the categories associated with a given label.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .categories.is_none().