Skip to main content

OcrEngine

Trait OcrEngine 

Source
pub trait OcrEngine: Send + Sync {
    // Required methods
    fn info(&self) -> EngineInfo;
    fn recognize(
        &self,
        image: &ImageBuffer,
        opts: &OcrOptions,
    ) -> Result<OcrOutput>;
}
Expand description

Image → text (Carmenta).

Required Methods§

Source

fn info(&self) -> EngineInfo

Source

fn recognize(&self, image: &ImageBuffer, opts: &OcrOptions) -> Result<OcrOutput>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§