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.0.tar.gz (11.3 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.0-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: screeny-0.2.0.tar.gz
  • Upload date:
  • Size: 11.3 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.0.tar.gz
Algorithm Hash digest
SHA256 69ab9b555467671d8609551f5b6b8dcd8e26d818cbc33ce0f8bb2938d52fd97a
MD5 4af405c557390144bbdab387f2d31d3f
BLAKE2b-256 d9eaf1ba8c144e8c7f0799716c3d3cf3b8f2d956c1ec27bdc9761500df23c897

See more details on using hashes here.

File details

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

File metadata

  • Download URL: screeny-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f31c8a46f06520954b457ca07ba87790dbd35f03e0f9888ba8defd3f5edd83f
MD5 310639cfe38d497a6e9e9067c1ca63a1
BLAKE2b-256 4fd536a77b8ea278a37195c3015cc4bc18b514c9a11771b521d53069655d1ed6

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