I\'m trying to get the nearest element (*.png) found from center of given region. This is what I have done till now:
import pyautogui pos1 = pyautogui.locateCent