pub struct KeyPoints {
pub keypoint_sets: Vec<KeypointSet>,
}Expand description
A collection of KeypointSets produced for a single frame.
Fields§
§keypoint_sets: Vec<KeypointSet>The underlying keypoint sets, one per detected object instance.
Implementations§
Source§impl KeyPoints
impl KeyPoints
Sourcepub fn new(keypoint_sets: Vec<KeypointSet>) -> Self
pub fn new(keypoint_sets: Vec<KeypointSet>) -> Self
Creates a KeyPoints from an existing vector.
Sourcepub fn iter(&self) -> Iter<'_, KeypointSet> ⓘ
pub fn iter(&self) -> Iter<'_, KeypointSet> ⓘ
Iterates over keypoint sets by reference.
Sourcepub fn iter_mut(&mut self) -> IterMut<'_, KeypointSet> ⓘ
pub fn iter_mut(&mut self) -> IterMut<'_, KeypointSet> ⓘ
Iterates over keypoint sets by mutable reference.
Sourcepub fn filter_by_confidence(&self, threshold: f32) -> KeyPoints
pub fn filter_by_confidence(&self, threshold: f32) -> KeyPoints
Returns a new KeyPoints with the same instances, but with any
individual joint below threshold confidence (or missing) cleared
to None. Unlike crate::core::Detections::filter_by_confidence,
this filters per-joint rather than dropping whole instances, since a
single low-confidence joint (e.g. an occluded wrist) shouldn’t
discard an otherwise good pose estimate.
Trait Implementations§
Source§impl IntoIterator for KeyPoints
impl IntoIterator for KeyPoints
Source§impl<'a> IntoIterator for &'a KeyPoints
impl<'a> IntoIterator for &'a KeyPoints
impl StructuralPartialEq for KeyPoints
Auto Trait Implementations§
impl Freeze for KeyPoints
impl RefUnwindSafe for KeyPoints
impl Send for KeyPoints
impl Sync for KeyPoints
impl Unpin for KeyPoints
impl UnsafeUnpin for KeyPoints
impl UnwindSafe for KeyPoints
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.