pub struct ProtectiveEquipmentSummary {
pub persons_indeterminate: Option<Vec<i64>>,
pub persons_with_required_equipment: Option<Vec<i64>>,
pub persons_without_required_equipment: Option<Vec<i64>>,
}
Expand description
Summary information for required items of personal protective equipment (PPE) detected on persons by a call to DetectProtectiveEquipment. You specify the required type of PPE in the SummarizationAttributes
(ProtectiveEquipmentSummarizationAttributes) input parameter. The summary includes which persons were detected wearing the required personal protective equipment (PersonsWithRequiredEquipment
), which persons were detected as not wearing the required PPE (PersonsWithoutRequiredEquipment
), and the persons in which a determination could not be made (PersonsIndeterminate
).
To get a total for each category, use the size of the field array. For example, to find out how many people were detected as wearing the specified PPE, use the size of the PersonsWithRequiredEquipment
array. If you want to find out more about a person, such as the location (BoundingBox) of the person on the image, use the person ID in each array element. Each person ID matches the ID field of a ProtectiveEquipmentPerson object returned in the Persons
array by DetectProtectiveEquipment
.
Fields
persons_indeterminate: Option<Vec<i64>>
An array of IDs for persons where it was not possible to determine if they are wearing personal protective equipment.
persons_with_required_equipment: Option<Vec<i64>>
An array of IDs for persons who are wearing detected personal protective equipment.
persons_without_required_equipment: Option<Vec<i64>>
An array of IDs for persons who are not wearing all of the types of PPE specified in the RequiredEquipmentTypes
field of the detected personal protective equipment.
Trait Implementations
sourceimpl Clone for ProtectiveEquipmentSummary
impl Clone for ProtectiveEquipmentSummary
sourcefn clone(&self) -> ProtectiveEquipmentSummary
fn clone(&self) -> ProtectiveEquipmentSummary
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 Debug for ProtectiveEquipmentSummary
impl Debug for ProtectiveEquipmentSummary
sourceimpl Default for ProtectiveEquipmentSummary
impl Default for ProtectiveEquipmentSummary
sourcefn default() -> ProtectiveEquipmentSummary
fn default() -> ProtectiveEquipmentSummary
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ProtectiveEquipmentSummary
impl<'de> Deserialize<'de> for ProtectiveEquipmentSummary
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ProtectiveEquipmentSummary> for ProtectiveEquipmentSummary
impl PartialEq<ProtectiveEquipmentSummary> for ProtectiveEquipmentSummary
sourcefn eq(&self, other: &ProtectiveEquipmentSummary) -> bool
fn eq(&self, other: &ProtectiveEquipmentSummary) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ProtectiveEquipmentSummary) -> bool
fn ne(&self, other: &ProtectiveEquipmentSummary) -> bool
This method tests for !=
.
impl StructuralPartialEq for ProtectiveEquipmentSummary
Auto Trait Implementations
impl RefUnwindSafe for ProtectiveEquipmentSummary
impl Send for ProtectiveEquipmentSummary
impl Sync for ProtectiveEquipmentSummary
impl Unpin for ProtectiveEquipmentSummary
impl UnwindSafe for ProtectiveEquipmentSummary
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