pub struct ProtectiveEquipmentSummarizationAttributes {
pub min_confidence: f32,
pub required_equipment_types: Vec<String>,
}
Expand description
Specifies summary attributes to return from a call to DetectProtectiveEquipment. You can specify which types of PPE to summarize. You can also specify a minimum confidence value for detections. Summary information is returned in the Summary
(ProtectiveEquipmentSummary) field of the response from DetectProtectiveEquipment
. The summary includes which persons in an image were detected wearing the requested types of person protective equipment (PPE), which persons were detected as not wearing PPE, and the persons in which a determination could not be made. For more information, see ProtectiveEquipmentSummary.
Fields
min_confidence: f32
The minimum confidence level for which you want summary information. The confidence level applies to person detection, body part detection, equipment detection, and body part coverage. Amazon Rekognition doesn't return summary information with a confidence than this specified value. There isn't a default value.
Specify a MinConfidence
value that is between 50-100% as DetectProtectiveEquipment
returns predictions only where the detection confidence is between 50% - 100%. If you specify a value that is less than 50%, the results are the same specifying a value of 50%.
required_equipment_types: Vec<String>
An array of personal protective equipment types for which you want summary information. If a person is detected wearing a required requipment type, the person's ID is added to the PersonsWithRequiredEquipment
array field returned in ProtectiveEquipmentSummary by DetectProtectiveEquipment
.
Trait Implementations
sourceimpl Clone for ProtectiveEquipmentSummarizationAttributes
impl Clone for ProtectiveEquipmentSummarizationAttributes
sourcefn clone(&self) -> ProtectiveEquipmentSummarizationAttributes
fn clone(&self) -> ProtectiveEquipmentSummarizationAttributes
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 Default for ProtectiveEquipmentSummarizationAttributes
impl Default for ProtectiveEquipmentSummarizationAttributes
sourcefn default() -> ProtectiveEquipmentSummarizationAttributes
fn default() -> ProtectiveEquipmentSummarizationAttributes
Returns the “default value” for a type. Read more
sourceimpl PartialEq<ProtectiveEquipmentSummarizationAttributes> for ProtectiveEquipmentSummarizationAttributes
impl PartialEq<ProtectiveEquipmentSummarizationAttributes> for ProtectiveEquipmentSummarizationAttributes
sourcefn eq(&self, other: &ProtectiveEquipmentSummarizationAttributes) -> bool
fn eq(&self, other: &ProtectiveEquipmentSummarizationAttributes) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ProtectiveEquipmentSummarizationAttributes) -> bool
fn ne(&self, other: &ProtectiveEquipmentSummarizationAttributes) -> bool
This method tests for !=
.
impl StructuralPartialEq for ProtectiveEquipmentSummarizationAttributes
Auto Trait Implementations
impl RefUnwindSafe for ProtectiveEquipmentSummarizationAttributes
impl Send for ProtectiveEquipmentSummarizationAttributes
impl Sync for ProtectiveEquipmentSummarizationAttributes
impl Unpin for ProtectiveEquipmentSummarizationAttributes
impl UnwindSafe for ProtectiveEquipmentSummarizationAttributes
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