AttributeError: module ‘cv2.cv2‘ has no attribute ‘TrackerKCF_create‘

报错

AttributeError: module ‘cv2.cv2’ has no attribute ‘TrackerKCF_create’
类似AttributeError: module ‘cv2.cv2’ has no attribute “xxxx"

解决方法

先卸载:pip uninstall opencv-contrib-python
再重新安装:pip install opencv-contrib-python

成功:
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_46211269/article/details/124897952