pub struct AsyncRecognizeText { /* private fields */ }Available on crate features
async and recognize_text only.Expand description
Async wrapper for VNRecognizeTextRequest.
Runs text recognition on a background DispatchQueue and returns a
RecognizeTextFuture that resolves when the request completes.
Implementations§
Source§impl AsyncRecognizeText
impl AsyncRecognizeText
pub const fn new( recognition_level: RecognitionLevel, uses_language_correction: bool, ) -> Self
Sourcepub fn recognize_in_path(&self, path: impl AsRef<Path>) -> RecognizeTextFuture ⓘ
pub fn recognize_in_path(&self, path: impl AsRef<Path>) -> RecognizeTextFuture ⓘ
Recognize text in the image at path asynchronously.
§Errors
Returns VisionError::RequestFailed if Vision fails, or
VisionError::InvalidArgument if the path cannot be encoded.
Trait Implementations§
Source§impl Clone for AsyncRecognizeText
impl Clone for AsyncRecognizeText
Source§fn clone(&self) -> AsyncRecognizeText
fn clone(&self) -> AsyncRecognizeText
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 AsyncRecognizeText
impl Debug for AsyncRecognizeText
Auto Trait Implementations§
impl Freeze for AsyncRecognizeText
impl RefUnwindSafe for AsyncRecognizeText
impl Send for AsyncRecognizeText
impl Sync for AsyncRecognizeText
impl Unpin for AsyncRecognizeText
impl UnsafeUnpin for AsyncRecognizeText
impl UnwindSafe for AsyncRecognizeText
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