visual-cortex 0.1.0

Watch screen regions and receive typed events over async streams when patterns match: OCR, template matching, and pixel conditions on live captures.
Documentation
//! Scry: watch screen regions and receive typed events when patterns match.

mod error;
mod event;
mod session;
mod stream;
mod watcher;

pub use error::{Error, Result};
pub use event::{Event, EventKind, ThresholdDirection};
pub use session::{Session, SessionBuilder};
pub use stream::EventStream;
pub use watcher::WatcherBuilder;

// Re-export the building blocks so consumers only need `visual_cortex`.
#[cfg(target_os = "macos")]
pub use visual_cortex_capture::ScapSource;
pub use visual_cortex_capture::{
    CaptureError, FakeSource, Frame, FrameSource, FrameView, PxRect, Rate, Region, Target,
};
pub use visual_cortex_vision::{
    from_fn, patterns, Brightness, Channel, ColorDominance, ColorMatch, Detector, DetectorError,
    DetectorOutput, FrameDiff, OcrDetector, OcrEngine, TemplateMatcher, TextSpan,
};