I’m looking for pointers to making a click map with Pillow ie a way to map pixels to the event / object that caused those pixels to be changed. I wonder if any one knows of existing approaches.
I imagine I need to record lists of changed pixels as events happen and those should probably be ordered by the y value. Pillow does provide methods to obtain the difference images and I suppose searching the pixel rows should be fairly easy.
Mapping a click event back to it’s origin is thern probably a search and can be organised via the y lists using the event y and x.