@kpanks/vision
v0.1.0
Published
Praetor-native vision tools — screen capture (PraetorScreen) + vision analysis primitives. No third-party screenshot lib in the default codepath.
Readme
@kpanks/vision
Praetor-native vision tools. Cross-platform screen capture (PraetorScreen)
- vision analysis primitives. No third-party screenshot lib in the default
codepath — uses OS-native binaries (
screencaptureon macOS,Get-Clipboard/ PowerShell on Windows,gnome-screenshot/scroton Linux).
Install
npm install @kpanks/visionUsage
import { PraetorScreen } from "@kpanks/vision";
const screen = new PraetorScreen();
const png = await screen.capture({ region: "fullscreen" });
// png is a Buffer of PNG bytesUsed by @kpanks/computer-control for desktop automation and by
@kpanks/browser as the vision fallback for canvas / anti-bot pages.
License
Apache 2.0.
