In using pyautogui to check if an image is not part of the screen, I tried below:
a = True
while a is True:
a = pyautogui.locateOnScreen('image.png')
print ("No this image.')
It doesn't seem work well.
What's the proper way to do so? Thank you.