pub struct Observation {
pub uuid: String,
pub confidence: f32,
pub time_range: Option<TimeRange>,
}Available on crate feature
recognize_text only.Expand description
Shared VNObservation metadata surfaced by Vision results.
Fields§
§uuid: StringStable UUID generated by Vision for this observation.
confidence: f32Base confidence score in 0.0..=1.0.
time_range: Option<TimeRange>Optional media time range in seconds.
Trait Implementations§
Source§impl Clone for Observation
impl Clone for Observation
Source§fn clone(&self) -> Observation
fn clone(&self) -> Observation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Observation
impl Debug for Observation
Source§impl PartialEq for Observation
impl PartialEq for Observation
Source§fn eq(&self, other: &Observation) -> bool
fn eq(&self, other: &Observation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Observation
Auto Trait Implementations§
impl Freeze for Observation
impl RefUnwindSafe for Observation
impl Send for Observation
impl Sync for Observation
impl Unpin for Observation
impl UnsafeUnpin for Observation
impl UnwindSafe for Observation
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