pub struct TextObservation {
pub bounding_box: NormalizedRect,
pub confidence: f32,
pub character_boxes: Vec<NormalizedRect>,
}Expand description
A dedicated VNTextObservation wrapper.
Fields§
§bounding_box: NormalizedRect§confidence: f32§character_boxes: Vec<NormalizedRect>Implementations§
Source§impl TextObservation
impl TextObservation
pub fn into_text_rect(self) -> TextRect
Trait Implementations§
Source§impl Clone for TextObservation
impl Clone for TextObservation
Source§fn clone(&self) -> TextObservation
fn clone(&self) -> TextObservation
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 TextObservation
impl Debug for TextObservation
Source§impl From<TextObservation> for TextRect
impl From<TextObservation> for TextRect
Source§fn from(value: TextObservation) -> Self
fn from(value: TextObservation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TextObservation
impl PartialEq for TextObservation
Source§fn eq(&self, other: &TextObservation) -> bool
fn eq(&self, other: &TextObservation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TextObservation
Auto Trait Implementations§
impl Freeze for TextObservation
impl RefUnwindSafe for TextObservation
impl Send for TextObservation
impl Sync for TextObservation
impl Unpin for TextObservation
impl UnsafeUnpin for TextObservation
impl UnwindSafe for TextObservation
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