pub struct RustpotterDetection {
pub name: String,
pub avg_score: f32,
pub score: f32,
pub scores: HashMap<String, f32>,
pub counter: usize,
pub gain: f32,
}
Expand description
Encapsulates the detection information.
Fields§
§name: String
Detected wakeword name.
avg_score: f32
Detection score against the averaged template.
score: f32
Detection score.
scores: HashMap<String, f32>
Detection scores against each template.
counter: usize
Partial detections counter.
gain: f32
Gain applied to the scored frame
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RustpotterDetection
impl RefUnwindSafe for RustpotterDetection
impl Send for RustpotterDetection
impl Sync for RustpotterDetection
impl Unpin for RustpotterDetection
impl UnwindSafe for RustpotterDetection
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> 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 more