pub struct HttpOcrEngine { /* private fields */ }Expand description
HTTP OCR client for servers implementing the LiteParse OCR API.
Implementations§
Trait Implementations§
Source§impl Clone for HttpOcrEngine
impl Clone for HttpOcrEngine
Source§fn clone(&self) -> HttpOcrEngine
fn clone(&self) -> HttpOcrEngine
Returns a duplicate of the value. Read more
1.0.0 · 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 HttpOcrEngine
impl Debug for HttpOcrEngine
Source§impl OcrEngine for HttpOcrEngine
impl OcrEngine for HttpOcrEngine
fn name(&self) -> &'static str
Source§fn recognize(
&self,
image: &[u8],
options: &OcrOptions,
) -> SpdfResult<Vec<OcrResult>>
fn recognize( &self, image: &[u8], options: &OcrOptions, ) -> SpdfResult<Vec<OcrResult>>
Run OCR on an image (PNG/JPEG bytes).
Source§fn recognize_batch(
&self,
images: &[&[u8]],
options: &OcrOptions,
) -> SpdfResult<Vec<Vec<OcrResult>>>
fn recognize_batch( &self, images: &[&[u8]], options: &OcrOptions, ) -> SpdfResult<Vec<Vec<OcrResult>>>
Default batch impl delegates to
recognize sequentially. Engines with
real batch APIs (e.g. a remote server that accepts a JSON array) should
override for a meaningful throughput win.Auto Trait Implementations§
impl Freeze for HttpOcrEngine
impl !RefUnwindSafe for HttpOcrEngine
impl Send for HttpOcrEngine
impl Sync for HttpOcrEngine
impl Unpin for HttpOcrEngine
impl UnsafeUnpin for HttpOcrEngine
impl !UnwindSafe for HttpOcrEngine
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