Window processing of post-processing frame

Asked

Viewed 39 times

1

It is possible to process the screen frame in Windows?

I am trying to make an opensource screen color filter/compressor in python.

  • Friend, you answered a question on Português because it does not translate your question, since it knows that the community is in Portuguese? Also do the Tour to learn how the community.

  • Yes @wmsouza, I thought it was in the English version, sorry and thanks for Edit.

1 answer

1

The most practical way to get screenshots is with the "pyautogui package".

Just install pyautogui in your Python environment and then:

import pyautogui
image = pyautogui.screenshot()

This returns a PIL-compatible picture object, which is more or less the default to handle Python images.

Note that at least on Linux, this functionality depends on installing a non-python-related package called "scrot" - on Debian and Ubunut, install with "sudo apt-get install scrot". In Fedora and Redhat: "sudo dnf install scrot".

Browser other questions tagged

You are not signed in. Login or sign up in order to post.