python中locateCenterOnScreen的confidence错误

 时间:2024-11-11 02:14:47

1、如图运行pyautogui.locateCenterOnScreen(r'C:\Users\Admi荏鱿胫协nistrator\desktop\python\bjh_zhijiefabu.png' , grayscale=False, confidence=0.7),会弹出错误,TypeError: _locateAll_python() got an unexpected keyword argument 'confidence’。

python中locateCenterOnScreen的confidence错误

2、如图箭头处点击terminal,进入命令行界面。

python中locateCenterOnScreen的confidence错误

3、如图命令行中输入“pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python”,安装好opencv-python。

python中locateCenterOnScreen的confidence错误

4、如红框内容,则表示opencv-python安装成功。

python中locateCenterOnScreen的confidence错误

5、再运行第一步locateCenterOnScreen,发现成功定位到图坐标,不会提示confidence错误。

python中locateCenterOnScreen的confidence错误
  • 如何用matlab处理excel文件中的数据?
  • matlab特殊字符的标记
  • Vscode打开后台更新技巧分享
  • pycharm怎么更新python插件
  • sql server 2008 卸载报错详解
  • 热门搜索
    重庆旅游百事通 丽江自助旅游攻略 周口旅游 雅安旅游景点大全 旅游资源分类表 放鸡岛旅游攻略 云南腾冲旅游攻略 景程旅游 马来西亚旅游注意事项 河北旅游地图