how to make pyautogui search a region of the screen code example
Example: how to make pyautogui search a region of the screen
import pyautogui
pyautogui.locateOnScreen('some_image.png', region=(0,0, 300, 400))
import pyautogui
pyautogui.locateOnScreen('some_image.png', region=(0,0, 300, 400))