pub struct PaddleOcr { /* private fields */ }Expand description
PaddleOCR det+rec pipeline behind visual-cortex-vision’s OcrEngine.
Cheap to clone: clones share the loaded ONNX sessions and charset
(issue #15 — N OCR watchers, one model in memory). Inference across
clones is serialized on the shared sessions (ort 2.0.0-rc.12’s safe
Session::run takes &mut self, verified against vendored source);
OCR already runs on the blocking pool, so contending watchers queue
briefly instead of multiplying model memory.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PaddleOcr
impl RefUnwindSafe for PaddleOcr
impl Send for PaddleOcr
impl Sync for PaddleOcr
impl Unpin for PaddleOcr
impl UnsafeUnpin for PaddleOcr
impl UnwindSafe for PaddleOcr
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