Skip to main content

Module vision

Module vision 

Source
Expand description

Vision utilities: pure-image marks overlay and the OCR backend selector.

The marks renderer in marks is platform-independent. The OCR backend in ocr is VNRecognizeTextRequest on macOS (P11) and Windows.Media.Ocr.OcrEngine on Windows (P12b); Linux returns crate::error::ComputerError::Unsupported. Both platforms produce the same ocr::OcrBlock shape, so callers never branch.

Re-exports§

pub use marks::draw_marks;
pub use marks::marks_for_nodes;
pub use marks::ocr_label;
pub use marks::tree_label;
pub use marks::MarkBox;
pub use ocr::recognize;
pub use ocr::redact_blocks;
pub use ocr::ImageRect as OcrImageRect;
pub use ocr::OcrBlock;
pub use ocr::OcrResult;

Modules§

marks
Pure-image set-of-marks overlay.
ocr
OCR backend selector.