Apply a filter to the screen live in Python

  Kiến thức lập trình

I’m trying to create an app that applies a filter (I mean an image filter, like on Instagram, etc.) to whatever is being displayed on the current screen.

I use tkinter to create a borderless click through window and my idea was to record the screen (using mss or similar), apply the filter and draw the result onto tkinter. What I didn’t consider is that mss will obviously also record the tkinter window itself, thus my filter gets applied over and over again.

Is there any way to record or take screenshots of what is behind the tkinter window? Maybe a different drawing library or a completely different solution?

LEAVE A COMMENT