Skip to main content

No project description provided

Project description

wc_cuda

A wrapper around windows-capture that captures the screen directly into PyTorch CUDA tensors, avoiding CPU memory copies and inter-device memory transfers.

To avoid reinstalling torch, it's not listed as a dependency, but a CUDA-enabled PyTorch installation is required. It only works on x64 Windows with an NVIDIA GPU.

High-FPS mode (optional)

WindowsCapture accepts:

  • reuse_output_buffer (default: False)
  • output_buffer_count (default: 3)

Usage

from wc_cuda import WindowsCapture

capture = WindowsCapture(
    monitor_index=1,
    device_id=0,
    reuse_output_buffer=True,
    output_buffer_count=4,
)

When buffer reuse is enabled, tensors may be overwritten after several frames (ring-buffer behavior), so clone tensors in your callback if you need to keep them long-term.

Credits

This was written by gemini-cli and Claude Code. Originally written by NiiightmareXD windows-capture-python and forked from Nagadomi wc_cuda, then further optimized by Claude Code.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wc_cuda-0.1.3-cp310-abi3-win_amd64.whl (168.4 kB view details)

Uploaded CPython 3.10+Windows x86-64

File details

Details for the file wc_cuda-0.1.3-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: wc_cuda-0.1.3-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 168.4 kB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.13.3

File hashes

Hashes for wc_cuda-0.1.3-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 9e0c63740901efd8bd662a06726ca58229172220df68b9a1096740f7fcebc7f7
MD5 f2a65209b5c03475b42a683e43036b98
BLAKE2b-256 d126cbe1a24b7fb1a0bf5ffa5848c6bb65ca962d6275f238cfd472f65127a448

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page