Ultra-fast screen capture in Rust with Python bindings
Project description
pixel forge
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()
Project details
Release history Release notifications | RSS feed
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.0.tar.gz
(163.7 kB
view hashes)
Built Distributions
Close
Hashes for pixel_forge-0.1.0-cp312-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6493813ada0e1d4f7ec626b22de59f3c5b5922b63ba8c012a5a42e743b5cc148 |
|
MD5 | 69c6abe74390bc54b917ed41633edb32 |
|
BLAKE2b-256 | 1da769c50f7495f55691b706074cee59c14a372f971101155fa5a224d23d4046 |
Close
Hashes for pixel_forge-0.1.0-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50e0b49aa71cf088010a57f3f8835d23f92d399d4d4940ec74a7fb2af8fd07d3 |
|
MD5 | 5de8f5f1a40127cd824f8dc2eb708653 |
|
BLAKE2b-256 | 4c1988f5ca935e1d1798e2ef6dc24d1d9178da4f7461d65aaeea497e24e1426f |
Close
Hashes for pixel_forge-0.1.0-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02387c10e821ca881af611abd9d04855a82e753c8170102c20f647e60e70941a |
|
MD5 | d1519d5ad73b1a7268b3c0dc87651633 |
|
BLAKE2b-256 | fff98cea00be44ad6ce75869b85f9e0617303190d086e333edc533eff39bf9d1 |
Close
Hashes for pixel_forge-0.1.0-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a4be39e0041cf98ddcb594727f0b3632aace461a52d1ff1dd7c4d74706f8956 |
|
MD5 | 003ea61d8dfda4feb5824bb56c17afee |
|
BLAKE2b-256 | a348619c4cdd67331696c417d3bf6721e0dbbb65280183a4f4eda8711c91b6ae |
Close
Hashes for pixel_forge-0.1.0-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7aad78ba92e5ed60e9ee0d8bffaab135af4909a828a192ff3fe6d2d7fff3aeb |
|
MD5 | 0c9d26732eb34a0763471cd84bb83481 |
|
BLAKE2b-256 | d790fe05d7df4ebc6e73f826a44f0fd906a6d4ef1efef979c364308c2865f967 |