import pyscreeze i = pyautogui.locateOnScreen(...) yourhand_loc = pyscreeze.Box( i.left + 50, i.top + 50, i.width+50, i.height+50 )