使用pyautogui中的LocateOnScreen函数中的confidence参数报错
之后照要求pip安装了opencv-python
但是同样的代码又报出如下错误:
OSError: Failed to read config.PNG because file is missing, has improper permissions, or is an unsupported or invalid format
之前图片的文件名是中文的,改成英文后还是不行
pip删除opencv-python,删除confidence参数则可正常运行
以下是我已安装的库:
```python
Package Version
------------------ ---------
async-generator 1.10
attrs 22.1.0
certifi 2022.12.7
cffi 1.15.1
charset-normalizer 2.1.1
exceptiongroup 1.0.4
h11 0.14.0
idna 3.4
MouseInfo 0.1.3
numpy 1.23.5
opencv-python 4.6.0.66
outcome 1.2.0
Pillow 9.3.0
pip 22.3.1
PyAutoGUI 0.9.53
pycparser 2.21
PyGetWindow 0.0.9
PyMsgBox 1.0.9
pyperclip 1.8.2
PyRect 0.2.0
PyScreeze 0.1.28
PySocks 1.7.1
pytweening 1.0.4
pywin32 305
requests 2.28.1
selenium 4.7.2
setuptools 58.1.0
sniffio 1.3.0
sortedcontainers 2.4.0
trio 0.22.0
trio-websocket 0.9.2
urllib3 1.26.13
wsproto 1.2.0
xlwings 0.28.5
```
缺少一些可用的库了