pub struct TextRectanglesRequest { /* private fields */ }Expand description
Builder for VNDetectTextRectanglesRequest.
Implementations§
Source§impl TextRectanglesRequest
impl TextRectanglesRequest
pub const fn new() -> Self
pub const fn with_image_based_request( self, image_based: ImageBasedRequest, ) -> Self
pub const fn with_report_character_boxes( self, report_character_boxes: bool, ) -> Self
pub const fn image_based_request(&self) -> &ImageBasedRequest
pub const fn report_character_boxes(&self) -> bool
Sourcepub fn perform(
&self,
path: impl AsRef<Path>,
) -> Result<Vec<TextObservation>, VisionError>
pub fn perform( &self, path: impl AsRef<Path>, ) -> Result<Vec<TextObservation>, VisionError>
Perform the request against path and return dedicated VNTextObservation
wrappers.
§Errors
Returns VisionError if the image cannot be loaded or Vision rejects
the request.
Trait Implementations§
Source§impl Clone for TextRectanglesRequest
impl Clone for TextRectanglesRequest
Source§fn clone(&self) -> TextRectanglesRequest
fn clone(&self) -> TextRectanglesRequest
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 TextRectanglesRequest
impl Debug for TextRectanglesRequest
Source§impl Default for TextRectanglesRequest
impl Default for TextRectanglesRequest
Source§fn default() -> TextRectanglesRequest
fn default() -> TextRectanglesRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for TextRectanglesRequest
impl PartialEq for TextRectanglesRequest
Source§fn eq(&self, other: &TextRectanglesRequest) -> bool
fn eq(&self, other: &TextRectanglesRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TextRectanglesRequest
Auto Trait Implementations§
impl Freeze for TextRectanglesRequest
impl RefUnwindSafe for TextRectanglesRequest
impl Send for TextRectanglesRequest
impl Sync for TextRectanglesRequest
impl Unpin for TextRectanglesRequest
impl UnsafeUnpin for TextRectanglesRequest
impl UnwindSafe for TextRectanglesRequest
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