pub trait OcrBackend: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn recognize(
&self,
image: ImageInput,
hints: OcrHints,
) -> Result<Vec<OcrSpan>, OcrError>;
}Expand description
Narrow OCR backend contract.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl OcrBackend for TesseractBackend
Available on crate feature
ocr-tesseract only.