Struct google_api_proto::google::cloud::visionai::v1alpha1::personal_protective_equipment_detection_output::DetectedPerson
source · pub struct DetectedPerson {
pub person_id: i64,
pub detected_person_identified_box: Option<PersonIdentifiedBox>,
pub detected_ppe_identified_boxes: Vec<PpeIdentifiedBox>,
pub face_coverage_score: Option<f32>,
pub eyes_coverage_score: Option<f32>,
pub head_coverage_score: Option<f32>,
pub hands_coverage_score: Option<f32>,
pub body_coverage_score: Option<f32>,
pub feet_coverage_score: Option<f32>,
}
Expand description
Detected Person contains the detected person and their associated ppes and their protecting information.
Fields§
§person_id: i64
The id of detected person.
detected_person_identified_box: Option<PersonIdentifiedBox>
The info of detected person identified box.
detected_ppe_identified_boxes: Vec<PpeIdentifiedBox>
The info of detected person associated ppe identified boxes.
face_coverage_score: Option<f32>
Coverage score for each body part. Coverage score for face.
eyes_coverage_score: Option<f32>
Coverage score for eyes.
head_coverage_score: Option<f32>
Coverage score for head.
hands_coverage_score: Option<f32>
Coverage score for hands.
body_coverage_score: Option<f32>
Coverage score for body.
feet_coverage_score: Option<f32>
Coverage score for feet.
Implementations§
source§impl DetectedPerson
impl DetectedPerson
sourcepub fn face_coverage_score(&self) -> f32
pub fn face_coverage_score(&self) -> f32
Returns the value of face_coverage_score
, or the default value if face_coverage_score
is unset.
sourcepub fn eyes_coverage_score(&self) -> f32
pub fn eyes_coverage_score(&self) -> f32
Returns the value of eyes_coverage_score
, or the default value if eyes_coverage_score
is unset.
sourcepub fn head_coverage_score(&self) -> f32
pub fn head_coverage_score(&self) -> f32
Returns the value of head_coverage_score
, or the default value if head_coverage_score
is unset.
sourcepub fn hands_coverage_score(&self) -> f32
pub fn hands_coverage_score(&self) -> f32
Returns the value of hands_coverage_score
, or the default value if hands_coverage_score
is unset.
sourcepub fn body_coverage_score(&self) -> f32
pub fn body_coverage_score(&self) -> f32
Returns the value of body_coverage_score
, or the default value if body_coverage_score
is unset.
sourcepub fn feet_coverage_score(&self) -> f32
pub fn feet_coverage_score(&self) -> f32
Returns the value of feet_coverage_score
, or the default value if feet_coverage_score
is unset.
Trait Implementations§
source§impl Clone for DetectedPerson
impl Clone for DetectedPerson
source§fn clone(&self) -> DetectedPerson
fn clone(&self) -> DetectedPerson
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DetectedPerson
impl Debug for DetectedPerson
source§impl Default for DetectedPerson
impl Default for DetectedPerson
source§impl Message for DetectedPerson
impl Message for DetectedPerson
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for DetectedPerson
impl PartialEq for DetectedPerson
source§fn eq(&self, other: &DetectedPerson) -> bool
fn eq(&self, other: &DetectedPerson) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DetectedPerson
Auto Trait Implementations§
impl Freeze for DetectedPerson
impl RefUnwindSafe for DetectedPerson
impl Send for DetectedPerson
impl Sync for DetectedPerson
impl Unpin for DetectedPerson
impl UnwindSafe for DetectedPerson
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request