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§
fn info(&self) -> EngineInfo
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".