computer-use 0.2.0

Cross-platform desktop automation for agents: screenshots, mouse, keyboard, accessibility, CDP, and isolation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! 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.

pub mod marks;
pub mod ocr;

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