Is there a way to check certain boundaries in pyautogui?

Viewed 44

I'm trying to find out how I can check a certain portion of the screen for an image and to ignore everything else. Here's the code:

while True:
    if pyautogui.locateOnScreen('fish.JPG', confidence=0.55) != None:
        print("fish")
        time.sleep(2.75)
0 Answers
Related