Versions in this module Expand all Collapse all v0 v0.3.1 May 8, 2026 v0.3.0 May 8, 2026 Changes in this version + type DiffGrid struct + Bounds image.Rectangle + Cells [][]float64 + Cols int + Rows int + func DiffImages(a, b image.Image, rows, cols int) (*DiffGrid, error) + func (g *DiffGrid) BoundingBox(threshold float64) (image.Rectangle, bool) + func (g *DiffGrid) Dirty(threshold float64) int + func (g *DiffGrid) Render(threshold float64) string v0.2.0 Apr 29, 2026 Changes in this version + type TextRegion struct + Confidence float64 + H int + Text string + W int + X int + Y int + func OCR(imageBytes []byte) ([]TextRegion, error) v0.1.0 Apr 23, 2026 Changes in this version + const Version + var DylibPath = "" + var ErrDisplayNotFound = errors.New("sckit: display not found") + var ErrNotImplemented = errors.New("sckit: not implemented in this version") + var ErrPermissionDenied = errors.New("sckit: screen recording permission denied") + var ErrStreamClosed = errors.New("sckit: stream closed") + var ErrTimeout = errors.New("sckit: timeout") + func Capture(ctx context.Context, target Target, opts ...Option) (image.Image, error) + func CaptureToFile(ctx context.Context, target Target, path string, opts ...Option) error + func Load() error + func ResolvedDylibPath() string + type App struct + BundleID string + Name string + PID int32 + func ListApps(ctx context.Context) ([]App, error) + type ColorSpace int + const ColorSpaceBT709 + const ColorSpaceDisplayP3 + const ColorSpaceSRGB + type Display struct + Height int + ID uint32 + Width int + X int + Y int + func ListDisplays(ctx context.Context) ([]Display, error) + type Exclude struct + Target Target + Windows []Window + type Frame struct + Height int + Pixels []byte + Width int + type Option func(*config) + func WithColorSpace(cs ColorSpace) Option + func WithCursor(show bool) Option + func WithFrameRate(fps int) Option + func WithQueueDepth(n int) Option + func WithResolution(width, height int) Option + type Region struct + Bounds image.Rectangle + Display Display + type Stream struct + func NewStream(ctx context.Context, target Target, opts ...Option) (*Stream, error) + func (s *Stream) Close() error + func (s *Stream) Frames(ctx context.Context) (<-chan image.Image, <-chan error) + func (s *Stream) Height() int + func (s *Stream) NextFrame(ctx context.Context) (image.Image, error) + func (s *Stream) NextFrameBGRA(ctx context.Context) (Frame, error) + func (s *Stream) Width() int + type Target interface + type Window struct + App string + BundleID string + Frame image.Rectangle + ID uint32 + Layer int + OnScreen bool + PID int32 + Title string + func ListWindows(ctx context.Context) ([]Window, error)