先卸载自己电脑上的opencv-contrib-python库,再安装低版本的库。具体步骤如下:

AttributeError: module 'cv2.cv2' has no attribute 'xfeatures2d'的解决办法

 

 AttributeError: module 'cv2.cv2' has no attribute 'xfeatures2d'的解决办法

 

相关文章: