Skip to main content

r-capture

A Python package for screen capturing and image manipulation, published on PyPI.

Installation

Install via pip:

pip install r-capture

Features

  • Screen Capture: Capture the current screen.
  • Image Display: Display the captured image.
  • Custom Dimensions: Adjust the width and height of the captured image by modifying the width and height attributes of the Capture class instance.
  • Pixel Data: Retrieve the pixel data of the captured image as a list of integers (list[int]).
  • Import Pixel Data: Create a Capture object from pixel data.
  • Save Images: Save the image stored in the Capture object.

Usage Example

import r_capture

# Capture the screen with a delay of 3 seconds
capture = r_capture.cap(delay=3,width=1200,height=800)

# Show the captured image
capture.show()

# Get pixel data as a list of integers
pixels = capture.pixels()
print(pixels)

#Create Capture object using pixels list
capture = r_capture.from_argb(pixels=pixels,width=1200,height=800)

# Resize image to specified resolution
capture.width = 800
capture.height = 600

# Save the captured image
capture.save("screenshot.png")

Contributing

Feel free to open an Issue or submit a Pull Request to improve the project.

License

MIT

Metadata

Release files for r-capture 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for r-capture 0.1.1
File Size Uploaded
r_capture-0.1.1.tar.gz 9.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for r-capture 0.1.1
File Interpreter ABI Platform
r_capture-0.1.1-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details

Total release size: 10.7 MB

Release files / r_capture-0.1.1.tar.gz

Download URL r_capture-0.1.1.tar.gz
Size 9.0 MB
Tags Source
SHA-256 checksum
How to use checksums
8ab40b891167663279a89cbb2cc597a67dbfbb6a263bb54a5ccc4bdb09729b58
BLAKE2b-256 checksum
How to use checksums
49c19082761bddb5a1f3cfbcc0a12ee24940d9e6f0ea1bdf1cd6978c404811eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.1

Release files / r_capture-0.1.1-cp311-cp311-win_amd64.whl

Download URL r_capture-0.1.1-cp311-cp311-win_amd64.whl
Size 1.7 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
e931b75693e9c85e4149632493678433b2b6f08dd6344f97a37b5fae8c814d6c
BLAKE2b-256 checksum
How to use checksums
420c998f8cd4346ae213cfc2d6f6d11f108d6a7e1751c075af3de55820104c89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.1

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page