I have a png of an asset, say:
and I'm trying to find it on my screen which looks something like:

Normally, I would use pyautoGUI as such:
pyautogui.locateCenterOnScreen('banana.png', grayscale=True, confidence=0.9)
but it currently isn't working. It seems that the problem might be with the transparent pixels of my banana asset, which obviously aren't matched. Is there a way to do this by ignoring the transparent pixels of the banana asset and treating them as wildcards? Or another way of accomplishing this?
So far in my search, I've found this Git issue with the same issue unresolved since 2014.
Thanks!



