Struct aws_sdk_rekognition::types::Instance
source · #[non_exhaustive]pub struct Instance {
pub bounding_box: Option<BoundingBox>,
pub confidence: Option<f32>,
pub dominant_colors: Option<Vec<DominantColor>>,
}
Expand description
An instance of a label returned by Amazon Rekognition Image (DetectLabels
) or by Amazon Rekognition Video (GetLabelDetection
).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.bounding_box: Option<BoundingBox>
The position of the label instance on the image.
confidence: Option<f32>
The confidence that Amazon Rekognition has in the accuracy of the bounding box.
dominant_colors: Option<Vec<DominantColor>>
The dominant colors found in an individual instance of a label.
Implementations§
source§impl Instance
impl Instance
sourcepub fn bounding_box(&self) -> Option<&BoundingBox>
pub fn bounding_box(&self) -> Option<&BoundingBox>
The position of the label instance on the image.
sourcepub fn confidence(&self) -> Option<f32>
pub fn confidence(&self) -> Option<f32>
The confidence that Amazon Rekognition has in the accuracy of the bounding box.
sourcepub fn dominant_colors(&self) -> Option<&[DominantColor]>
pub fn dominant_colors(&self) -> Option<&[DominantColor]>
The dominant colors found in an individual instance of a label.
Trait Implementations§
source§impl PartialEq<Instance> for Instance
impl PartialEq<Instance> for Instance
impl StructuralPartialEq for Instance
Auto Trait Implementations§
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnwindSafe for Instance
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more