Traceback (most recent call last):
File "D:\python lesson\python\Lib\site-packages\pyautogui_init.py", line 172, in wrapper
return wrappedFunction(*args, **kwargs)
File "D:\python lesson\python\Lib\site-packages\pyautogui_init.py", line 210, in locateOnScreen
return pyscreeze.locateOnScreen(*args, **kwargs)
File "D:\python lesson\python\Lib\site-packages\pyscreeze_init.py", line 405, in locateOnScreen
retVal = locate(image, screenshotIm, **kwargs)
File "D:\python lesson\python\Lib\site-packages\pyscreeze_init.py", line 383, in locate
points = tuple(locateAll(needleImage, haystackImage, **kwargs))
File "D:\python lesson\python\Lib\site-packages\pyscreeze_init_.py", line 257, in _locateAll_opencv
raise ImageNotFoundException('Could not locate the image (highest confidence = %.3f)' % result.max())
pyscreeze.ImageNotFoundException: Could not locate the image (highest confidence = 0.527)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\python lesson\36.py", line 5, in
oneLocation=pyautogui.locateOnScreen('D:/photo/h.png',confidence=0.58)
File "D:\python lesson\python\Lib\site-packages\pyautogui_init_.py", line 174, in wrapper
raise ImageNotFoundException # Raise PyAutoGUI's ImageNotFoundException.
pyautogui.ImageNotFoundException