Skip to main content

Module ocr

Module ocr 

Source
Expand description

OCR adapter contract surface and concrete backends.

The OcrAdapter trait stays open for future backends (cloud OCR, Apple Vision, etc.). The shipping backend in v0.0.x is the Tesseract subprocess adapter under tesseract.

The trait itself remains fail-loud-default via PendingOcrAdapter so an adopter who builds a trait object without picking a backend gets a typed NotImplemented error instead of silent zero-detection output (Axis 1 fail-closed).

Re-exports§

pub use tesseract::TesseractOcr;ocr-tesseract

Modules§

tesseractocr-tesseract
Tesseract subprocess OCR adapter.

Structs§

OcrResult
Result of an OCR pass: full text + a structured confidence summary.
PendingOcrAdapter
Reserved fail-loud adapter.

Traits§

OcrAdapter
Adapter contract for OCR backends.