Python 用Pyinstaller生成exe的问题,因为用了locateOnScreen的confidence参数,所以调用了OpenCV,
出现了问题:NotImplementedError: The confidence keyword argument is only available if OpenCV is install


最后,发现是Pyinstaller与OpenCV版本冲突所致,最后用 OpenCV4.5.3.56解决了。
pip install opencv-python==4.5.3.56

更多推荐

Python问题:NotImplementedError: The confidence keyword argument is only available