Skip to main content

screen_search is small python library use to Searchs for an image on the screen

install:

to install the library type in your Terminal

pip install screen_search

requirements

screen_search supports Python 2 and 3. If you are installing screen_search from PyPI using pip: Windows has no dependencies. The Win32 extensions do not need to be installed. OS X needs the pyobjc-core and pyobjc module installed (in that order). Linux needs the python3-xlib (or python-xlib for Python 2) module installed. Pillow needs to be installed, and on Linux you may need to install additional libraries to make sure Pillow's PNG/JPEG works correctly.

Example

this is simple example of looking for a picture on the screen and moving the pointer to it.

from screen_search import *

# Search for the github logo on the whole screen
# note that the search only works on your primary screen.
search = Search("github.png")


pos = search.imagesearch()

if pos[0] != -1:
    print("position : ", pos[0], pos[1])
    pyautogui.moveTo(pos[0], pos[1])
else:
    print("image not found")

Metadata

Release files for screen-search 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 screen-search 1.1
File Size Uploaded
screen_search-1.1.tar.gz 15.4 kB Details

Release files / screen_search-1.1.tar.gz

Download URL screen_search-1.1.tar.gz
Size 15.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c687fb37a77421ebd713054c43038cb97a769c5a7ccd0daad448f177e84d33a5
BLAKE2b-256 checksum
How to use checksums
a8f98cdc4d87fb234468c75545dc90e003edab277d5b9887ee77b6bb9744ed82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release history Release notifications | RSS feed

This release

1.1 This release

1 release file

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