import pyautogui
a = pyautogui.locateCenterOnScreen('sdr.png')
print(a)
Traceback (most recent call last):
File "C:\Users\97817\PycharmProjects\pythonProject\demo.py", line 2, in <module>
a = pyautogui.locateCenterOnScreen('sdr.png')
File "C:\Users\97817\AppData\Local\Programs\Python\Python39\lib\site-packages\pyscreeze-0.1.28-py3.9.egg\pyscreeze\__init__.py", line 413, in locateCenterOnScreen
File "C:\Users\97817\AppData\Local\Programs\Python\Python39\lib\site-packages\pyscreeze-0.1.28-py3.9.egg\pyscreeze\__init__.py", line 373, in locateOnScreen
File "C:\Users\97817\AppData\Local\Programs\Python\Python39\lib\site-packages\pyscreeze-0.1.28-py3.9.egg\pyscreeze\__init__.py", line 353, in locate
File "C:\Users\97817\AppData\Local\Programs\Python\Python39\lib\site-packages\pyscreeze-0.1.28-py3.9.egg\pyscreeze\__init__.py", line 262, in _locateAll_python
FileNotFoundError: [Errno 2] No such file or directory: 'sdr.png'