Suppose that you are getting a live feed from a camera to your computer using a proprietary program, which is displaying e.g. a 1024x1024 pixel video to your screen. Would it be possible to write a small GUI program using Python/Tkinter, featuring a resizable window with a transparent area which "grabs" the background of whatever the transparent area is placed on top?
Assuming that you don't have direct access to the camera, I suppose this questions comes down to 1.) how one can read the video data provided by your GPU to a certain screen area using Python and 2.) if it is possible to dynamically adjust the readout area via a transparent Tkinter window.
I can probably figure out 2.), once it is clear how to grab a certain screen area from the GPU.
Note that I do not want to take a screenshot every 50 ms or so, but really get the GPU stream for a specific display area, at whatever system refresh rate is set. The stream should then be stored into a circular RAM buffer for live image analysis.