How to capture the contents of a specific window with python?

Viewed 3290

I'm doing a project which requires me to capture the contents of a particular window. Till now I was placing that window on a specific place on the screen and taking the screenshot of that part of the screen using mss library in python. Then I was using this image for further processing using opencv.

I was wondering if there is a better way to get contents of a window as a image.

0 Answers
Related