当前位置 : 主页 > 编程语言 > python >

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

来源:互联网 收集:自由互联 发布时间:2022-06-15
报错 AttributeError: module ‘cv2.cv2’ has no attribute ‘TrackerKCF_create’ 类似AttributeError: module ‘cv2.cv2’ has no attribute “xxxx" 解决方法 先卸载:pip uninstall opencv-contrib-python 再重新安装:pip ins

报错

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

成功:
AttributeError: module ‘cv2.cv2‘ has no attribute ‘TrackerKCF_create‘_解决方法


网友评论