pub struct OcrOptions {
pub languages: Vec<String>,
pub correct_rotation: bool,
pub dpi: Option<u32>,
}Expand description
OCR invocation options.
Fields§
§languages: Vec<String>Language code(s). HTTP servers use ISO 639-1 ("en"); Tesseract uses
ISO 639-3 ("eng"). The caller chooses the right form.
correct_rotation: bool§dpi: Option<u32>Render DPI the input image was produced at. Used by Tesseract to size
characters correctly. None leaves it to the engine’s heuristics.
Trait Implementations§
Source§impl Clone for OcrOptions
impl Clone for OcrOptions
Source§fn clone(&self) -> OcrOptions
fn clone(&self) -> OcrOptions
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 OcrOptions
impl Debug for OcrOptions
Auto Trait Implementations§
impl Freeze for OcrOptions
impl RefUnwindSafe for OcrOptions
impl Send for OcrOptions
impl Sync for OcrOptions
impl Unpin for OcrOptions
impl UnsafeUnpin for OcrOptions
impl UnwindSafe for OcrOptions
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