pub enum OcrEngineMode {
TesseractOnly = 0,
LstmOnly = 1,
TesseractLstmCombined = 2,
Default = 3,
}Expand description
OCR engine mode
Variants§
TesseractOnly = 0
👎Deprecated: Use LstmOnly instead.
Run Tesseract only.
LstmOnly = 1
Run just the LSTM line recognizer.
TesseractLstmCombined = 2
👎Deprecated: Use LstmOnly instead.
Run LSTM, fall back to Tesseract when things get difficult.
Default = 3
Choose mode automatically based on the configuration.
Trait Implementations§
Source§impl Clone for OcrEngineMode
impl Clone for OcrEngineMode
Source§fn clone(&self) -> OcrEngineMode
fn clone(&self) -> OcrEngineMode
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 OcrEngineMode
impl Debug for OcrEngineMode
Source§impl Hash for OcrEngineMode
impl Hash for OcrEngineMode
Source§impl Ord for OcrEngineMode
impl Ord for OcrEngineMode
Source§fn cmp(&self, other: &OcrEngineMode) -> Ordering
fn cmp(&self, other: &OcrEngineMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OcrEngineMode
impl PartialEq for OcrEngineMode
Source§impl PartialOrd for OcrEngineMode
impl PartialOrd for OcrEngineMode
impl Copy for OcrEngineMode
impl Eq for OcrEngineMode
impl StructuralPartialEq for OcrEngineMode
Auto Trait Implementations§
impl Freeze for OcrEngineMode
impl RefUnwindSafe for OcrEngineMode
impl Send for OcrEngineMode
impl Sync for OcrEngineMode
impl Unpin for OcrEngineMode
impl UnsafeUnpin for OcrEngineMode
impl UnwindSafe for OcrEngineMode
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