computer_use/vision/mod.rs
1//! Vision utilities: pure-image marks overlay and the OCR backend selector.
2//!
3//! The marks renderer in [`marks`] is platform-independent. The OCR backend in
4//! [`ocr`] is `VNRecognizeTextRequest` on macOS (P11) and
5//! `Windows.Media.Ocr.OcrEngine` on Windows (P12b); Linux returns
6//! [`crate::error::ComputerError::Unsupported`]. Both platforms produce the
7//! same [`ocr::OcrBlock`] shape, so callers never branch.
8
9pub mod marks;
10pub mod ocr;
11
12pub use marks::{draw_marks, marks_for_nodes, ocr_label, tree_label, MarkBox};
13pub use ocr::{recognize, redact_blocks, ImageRect as OcrImageRect, OcrBlock, OcrResult};