Struct aws_sdk_rekognition::types::CustomLabel
source · #[non_exhaustive]pub struct CustomLabel {
pub name: Option<String>,
pub confidence: Option<f32>,
pub geometry: Option<Geometry>,
}Expand description
A custom label detected in an image by a call to DetectCustomLabels.
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.name: Option<String>The name of the custom label.
confidence: Option<f32>The confidence that the model has in the detection of the custom label. The range is 0-100. A higher value indicates a higher confidence.
geometry: Option<Geometry>The location of the detected object on the image that corresponds to the custom label. Includes an axis aligned coarse bounding box surrounding the object and a finer grain polygon for more accurate spatial information.
Implementations§
source§impl CustomLabel
impl CustomLabel
sourcepub fn confidence(&self) -> Option<f32>
pub fn confidence(&self) -> Option<f32>
The confidence that the model has in the detection of the custom label. The range is 0-100. A higher value indicates a higher confidence.
source§impl CustomLabel
impl CustomLabel
sourcepub fn builder() -> CustomLabelBuilder
pub fn builder() -> CustomLabelBuilder
Creates a new builder-style object to manufacture CustomLabel.
Trait Implementations§
source§impl Clone for CustomLabel
impl Clone for CustomLabel
source§fn clone(&self) -> CustomLabel
fn clone(&self) -> CustomLabel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CustomLabel
impl Debug for CustomLabel
source§impl PartialEq for CustomLabel
impl PartialEq for CustomLabel
source§fn eq(&self, other: &CustomLabel) -> bool
fn eq(&self, other: &CustomLabel) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CustomLabel
Auto Trait Implementations§
impl RefUnwindSafe for CustomLabel
impl Send for CustomLabel
impl Sync for CustomLabel
impl Unpin for CustomLabel
impl UnwindSafe for CustomLabel
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.