pub struct OCRConfig {
pub engine: OCREngineType,
pub languages: Vec<String>,
pub confidence_threshold: f32,
pub spell_correction: bool,
pub preserve_formatting: bool,
}Expand description
OCR configuration
Fields§
§engine: OCREngineTypeOCR engine to use
languages: Vec<String>Languages to recognize
confidence_threshold: f32Confidence threshold
spell_correction: boolEnable spell correction
preserve_formatting: boolPreserve formatting
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OCRConfig
impl RefUnwindSafe for OCRConfig
impl Send for OCRConfig
impl Sync for OCRConfig
impl Unpin for OCRConfig
impl UnwindSafe for OCRConfig
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