I'm trying to capture my screen using Python because I'll use it on OpenCV, but I couldn't find a way to make it work on Gnome, since Gnome uses Wayland and all libraries that I've found only work with X11.
For now I'm not considering change my interface. I'm searching a solution to this problem. Does someone know a solution?
To be more specific, I'll use the images to train an AI and so I need they continuously.
EDIT: I've found this but how can I pass frames to OpenCV in Python instead of save a video file?