--- id: dxcam version: "0.3.0" license: MIT license_treatment: permissive maintenance: active --- # dxcam — A Python high-performance screenshot library for Windows using Desktop Duplication API License: permissive · Maintenance: active · Downloads: 144.8K/mo ## What it is and what it does DXcam is a Windows-only Python library for capturing screen frames at high speed using the Desktop Duplication API. It wraps low-level DXGI or WinRT capture backends and returns frames as numpy arrays, making it suitable for real-time video pipelines, AI agent vision systems, and computer vision workflows that need low-latency, high-FPS access to screen content. The library supports both one-shot frame grabs and continuous capture with an in-memory ring buffer, optional region cropping, multiple output color formats (RGB, RGBA, BGR, BGRA, GRAY), and frame timestamps. It depends on comtypes for Windows COM interop and numpy for array handling. Wheels are pre-built for Python 3.10–3.14 on Windows; source builds require Cython compilation for optimal performance. Use it for: - Capture game or application screens at 60+ fps for real-time AI agent vision or computer vision analysis. - Record full-screen Direct3D applications with stable, low-latency frame delivery for video encoding. - Grab individual frames from multiple monitors or GPU outputs for multi-display monitoring systems. - Build screen-based automation or testing pipelines that need precise frame timing and region selection. - Stream desktop content to machine learning models with minimal latency overhead. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. DXcam captures screen frames on Windows at high speed using the Desktop Duplication API, returning numpy arrays for direct use in video pipelines or computer vision workflows. Yes, if you are on Windows and need high-speed screen capture for video, AI, or computer vision work. The active maintenance, permissive MIT license, and native support for Direct3D apps make it a solid choice over slower alternatives. Install friction is moderate (Windows-only, Python 3.10+, two dependencies), but no known vulnerabilities and recent releases reduce risk. ## Install pip install dxcam uv add dxcam poetry add dxcam ## Installing dxcam Before you install: Medium install friction: Windows-only wheels for Python 3.10–3.14 with two runtime dependencies (comtypes, numpy). Active maintenance with recent releases; repo shows 802 stars and last commit 2026-03-18. License in practice: MIT license permits commercial and private use with minimal restrictions; suitable for most projects without legal friction. Quickstart: pip install dxcam import dxcam with dxcam.create() as camera: frame = camera.grab() # returns numpy.ndarray Windows 10+ required; comtypes and numpy must be installed; Python 3.10 or later. Verify before relying: - Whether the 240+fps throughput claim on 1080p holds across typical hardware configurations. - Performance characteristics of the winrt backend relative to dxgi on modern Windows 11 systems. - Behavior and overhead when capturing multiple monitors or GPU devices simultaneously. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 144.8K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags windows screen capture, high-fps screenshot library, desktop duplication api python, low-latency frame grab, direct3d screen recording, numpy frame capture, windows video capture, windows-only, real-time-capture, computer-vision [View on SkillFed](https://skillfed.io/packages/dxcam) · [View on PyPI](https://pypi.org/project/dxcam/)