pub struct RecognizedTextObservation {
pub observation: Observation,
pub text: String,
pub bounding_box: BoundingBox,
}Available on crate feature
recognize_text only.Expand description
One recognized-text observation plus shared Observation metadata.
Fields§
§observation: Observation§text: String§bounding_box: BoundingBoxImplementations§
Source§impl RecognizedTextObservation
impl RecognizedTextObservation
Sourcepub fn into_recognized_text(self) -> RecognizedText
pub fn into_recognized_text(self) -> RecognizedText
Drop the generic observation metadata and keep the existing text result shape used elsewhere in the crate.
Sourcepub fn as_recognized_text(&self) -> RecognizedText
pub fn as_recognized_text(&self) -> RecognizedText
Clone into the existing RecognizedText shape.
Sourcepub fn candidate(&self) -> RecognizedTextCandidate
pub fn candidate(&self) -> RecognizedTextCandidate
Clone into the dedicated VNRecognizedText wrapper.
Trait Implementations§
Source§impl Clone for RecognizedTextObservation
impl Clone for RecognizedTextObservation
Source§fn clone(&self) -> RecognizedTextObservation
fn clone(&self) -> RecognizedTextObservation
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 RecognizedTextObservation
impl Debug for RecognizedTextObservation
Source§impl From<RecognizedTextObservation> for RecognizedText
impl From<RecognizedTextObservation> for RecognizedText
Source§fn from(value: RecognizedTextObservation) -> Self
fn from(value: RecognizedTextObservation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RecognizedTextObservation
impl PartialEq for RecognizedTextObservation
Source§fn eq(&self, other: &RecognizedTextObservation) -> bool
fn eq(&self, other: &RecognizedTextObservation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RecognizedTextObservation
Auto Trait Implementations§
impl Freeze for RecognizedTextObservation
impl RefUnwindSafe for RecognizedTextObservation
impl Send for RecognizedTextObservation
impl Sync for RecognizedTextObservation
impl Unpin for RecognizedTextObservation
impl UnsafeUnpin for RecognizedTextObservation
impl UnwindSafe for RecognizedTextObservation
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