pub enum OcrEngine {
Mock,
Tesseract,
Azure,
Aws,
GoogleCloud,
}Expand description
Supported OCR engines
Variants§
Mock
Mock OCR provider for testing
Tesseract
Tesseract OCR (local processing)
Azure
Azure Computer Vision OCR
Aws
AWS Textract
GoogleCloud
Google Cloud Vision OCR
Implementations§
Source§impl OcrEngine
impl OcrEngine
Sourcepub fn supports_format(&self, format: ImageFormat) -> bool
pub fn supports_format(&self, format: ImageFormat) -> bool
Check if this engine supports the given image format
Trait Implementations§
impl Copy for OcrEngine
impl Eq for OcrEngine
impl StructuralPartialEq for OcrEngine
Auto Trait Implementations§
impl Freeze for OcrEngine
impl RefUnwindSafe for OcrEngine
impl Send for OcrEngine
impl Sync for OcrEngine
impl Unpin for OcrEngine
impl UnwindSafe for OcrEngine
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.