if you use locateOnScreen according to the example, the None, image is returned as the downloaded image, as follows
:
according to the example, a coordinate should be put back, and if it is not identified, it should be returned to the None. But how could it not be recognized here?
there is another problem. Execute:
im2 = pyautogui.screenshot("my_screenshot.png")
where will the screenshot pictures be stored?