使用locateCenterOnScreen涉及到confidence参数的时候,在编辑器内可以正常运行
但是使用pyinstaller打包后会报
TypeError: _locateAll_python() got an unexpected keyword argument 'confidence’。
的错误
查了很多帖子解决方法如下:
第一种方法:直接去掉confidence参数 但是会导致识别必须百分百 没有容错
第二种方法:降低 numpy 和 opencv-python 的版本为
numpy 1.16.4
opencv-python 3.4.5.20
python版本是3.7.1