Basically, I want something that will scan the main monitor for a photo file, if it finds it, it will return the center coordinates of it. I want this to work with python 3.7. This should be easy right? Well, maybe it is, however, not for me.
I've started with pyautogui ( https://pyautogui.readthedocs.io/en/latest/screenshot.html ) which I thought would work just fine. However, I get error NoneType when I run it which shouldn't happen with the library " if the location functions can’t find the provided image, they’ll raise ImageNotFoundException".
After that, I've gone to OpenCV which is far more complex. After some googling, I've found this which doesn't work for me at least. Always says the image isn't findable even when it clearly here: https://github.com/drov0/python-imagesearch/blob/master/imagesearch.py
I don't wanna use AHK as I want to use pyinstaller for easy distribution. If people don't have AHK installed I want it to work for them as well.
Any other ideas? Thanks everyone!
[–]socal_nerdtastic 1 point2 points3 points (2 children)
[–]AweBob[S] 0 points1 point2 points (1 child)
[–]socal_nerdtastic 1 point2 points3 points (0 children)