I have a video game bot I am working on that looks at the screen of a video game and detects objects within that window.
My current solution is to take a screenshot of that window every x seconds, detect the objects in that screenshot, and take actions accordingly.
I know that open-CV works with web camera inputs and I was wondering if there anything like that I can do for a video game screen?
Please note that this is for purely educational purposes only. I am not going to use this bot for anything more than automation in a single player game - But I don't want to read program memory as I am trying to learn about image classification.
Thanks
ImageGrab is slow (as stated here Fastest way to take a screenshot with python on windows) but it suits your needs if you are only taking images every X seconds.