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()
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
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.1.tar.gz
(168.7 kB
view hashes)
Built Distributions
Close
Hashes for pixel_forge-0.1.1-cp312-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fca17eedab3662a88e0424e22794a7ed2b45215326d3f3181ce0817695a38c82 |
|
MD5 | ad61e8d6274178899ef4768fc04eb1d4 |
|
BLAKE2b-256 | 97d499ef241c09d7714ad12aa011f2e5a5e319975524dba356482b6b7d8b0eb7 |
Close
Hashes for pixel_forge-0.1.1-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c121e0326c255acf4e29b0cf4c875a6b0f960bec5ed10df9afd98bdc77c91622 |
|
MD5 | 1ee0129c8b9bb2e147e39a17a3c1858d |
|
BLAKE2b-256 | ce5416b16c5b78e1383e012312485254599bcf280c716d39623eb2ef2b2bd534 |
Close
Hashes for pixel_forge-0.1.1-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96aa1b8ebe5d6a2a1d58a4ba08c3e11a7f2e97cff2f4a32440ee34f417e215e5 |
|
MD5 | b7b0dcc96186f8cb1934a34430426b4c |
|
BLAKE2b-256 | 1c33f94bf86e4ced4c49fb2124fca7ab71d882b3c4aa8930dc7a95872482683d |
Close
Hashes for pixel_forge-0.1.1-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e06c0fd05276d84da389c4edcec264d2320a835f891af2cd6b56f517fa99490 |
|
MD5 | 016ad24c5a7a87b3505a6df7bb3e0184 |
|
BLAKE2b-256 | fd60b72eb5ea7edee359fa5b09e670ea7ecdbac8fbc967b89d6407a9bb2da23c |
Close
Hashes for pixel_forge-0.1.1-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ebe1ce97e1873f59ddd093adbd44c8dfc2fcf1427ab459aa7b8d39ad4bd1490 |
|
MD5 | d228a6332117735c3e2e1e85f2c4f224 |
|
BLAKE2b-256 | 0438863fef17f13631ca2c3480e22fe015309c0538a8ed0a494ffcf11115101b |