Skip to main content

A simple python library for working with screens and images.

Project description

Screeny

A simple python library for working with screens and images.

Installation

pip install screeny

Usage

from screeny import Screeny

sc = Screeny()
img = sc.take_screenshot()

API-Reference

screeny.take_screenshot(rect: QRect = None)

Takes a screenshot of the complete monitor or a given area as "rect". Returns the image as a numpy-array.

screeny.get_mouse_pos()

Returns the current position of the mouse as a tuple of xy-coordinates.

screeny.locate_image_on_screen(image: str | type[np.array], rect: QRect = None, confidence: float = 0.8)

Search for an image on the screen. Returns the location of the found image in pixel or False, if no image was found.

locate_image_in_image(img_to_find: str | type[np.array], in_img_to_search: str | type[np.array], confidence: float = 0.8)

Search for an image in another image and returns the location of the found image in pixels. Returns False, if no image was found.

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

screeny-0.2.1.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

screeny-0.2.1-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file screeny-0.2.1.tar.gz.

File metadata

  • Download URL: screeny-0.2.1.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for screeny-0.2.1.tar.gz
Algorithm Hash digest
SHA256 4e4cfccf12c65bf23df7c1bae35c9dfb17154851cd3d3b12d1985c3bc27cbf16
MD5 f1884e6fcdc07c849ca5be32bf6a278e
BLAKE2b-256 63d04731163c0a72deec734bc62377d55916f2b8f55a486f5132ed29d0a2cd6c

See more details on using hashes here.

File details

Details for the file screeny-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: screeny-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for screeny-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 412c879a2ca00865316f719f4098a014b8a64d05384206fa0058c5bc5441efab
MD5 ee7e9ec50017c745dd3a2ff41825725f
BLAKE2b-256 af0f6ab9f32450adfc2c81a00c488495a6184d77a4e0ca6f647cd7c1bd027bbd

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