pub struct TesseractEngine { /* private fields */ }Expand description
Tesseract OCR engine
Implementations§
Source§impl TesseractEngine
impl TesseractEngine
Sourcepub fn new(languages: Vec<String>) -> RragResult<Self>
pub fn new(languages: Vec<String>) -> RragResult<Self>
Create new Tesseract engine
Trait Implementations§
Source§impl OCREngineImpl for TesseractEngine
impl OCREngineImpl for TesseractEngine
Source§fn extract_text(&self, image_path: &Path) -> RragResult<OCRResult>
fn extract_text(&self, image_path: &Path) -> RragResult<OCRResult>
Extract text from image
Source§fn capabilities(&self) -> EngineCapabilities
fn capabilities(&self) -> EngineCapabilities
Get engine capabilities
Auto Trait Implementations§
impl Freeze for TesseractEngine
impl RefUnwindSafe for TesseractEngine
impl Send for TesseractEngine
impl Sync for TesseractEngine
impl Unpin for TesseractEngine
impl UnwindSafe for TesseractEngine
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