Skip to content

Instantly share code, notes, and snippets.

@vpdc
vpdc / capture_darwin.py
Created August 3, 2025 21:50 — forked from mr-linch/capture_darwin.py
Make fast screenshot of Mac OS window from Python (using native api bindings, 30 fps on Air M2)
import Quartz as QZ
import Quartz.CoreGraphics as CG
import AppKit as AK
import numpy as np
import numpy.typing as npt
import typing as t
Matcher = t.Callable[[dict[str, t.Any]], bool]