Skip to main content

Ultra-fast screen capture in Rust with Python bindings

Project description

pixel forge  Python Version Rust Version Licence Build Status Docs Status

Ultra-fast screen capture in Rust with Python bindings

Installing

The package can be installed via

pip install pixel_forge

Example

import time

import numpy as np
from pixel_forge import Capture, Monitor, Window, foreground_window

c = Capture()
m = Monitor()
c.start(m)
img = c.frame()
c.stop()
assert isinstance(img, np.ndarray)

w: Window = foreground_window()
c.start(w)
img1 = c.frame()
time.sleep(1)
img2 = c.frame()  # Returns the most recent frame
c.stop()

Documentation

For a more detailed description of the package, visit our documentation.

Credit

This package started as a rewrite of windows-capture, and a good chunk of the implementation is taken directly from that project. Full credit goes to NiiightmareXD for those parts.

Project details


Download files

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

Source Distribution

pixel_forge-0.1.1.tar.gz (168.7 kB view hashes)

Uploaded Source

Built Distributions

pixel_forge-0.1.1-cp312-none-win_amd64.whl (169.2 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

pixel_forge-0.1.1-cp311-none-win_amd64.whl (171.1 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

pixel_forge-0.1.1-cp310-none-win_amd64.whl (170.9 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

pixel_forge-0.1.1-cp39-none-win_amd64.whl (170.8 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

pixel_forge-0.1.1-cp38-none-win_amd64.whl (171.1 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

Supported by

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