python中locateCenterOnScreen的confidence错误
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’。

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

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

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:63
阅读量:27
阅读量:70
阅读量:53
阅读量:29