SIFT:AttributeError: module 'cv2.cv2' has no attribute 'xfeatures2d'

SIFT在opencv中有版权限制,应该降低你所安装的opencv版本。
例如 pip install opencv-contrib-python3.3.0.10
或者 pip install opencv-contrib-python
3.4.1.15
如果你是ubuntu版本则是 sudo pip install opencv-contrib-python3.4.1.15或者 sudo pip install opencv-contrib-python3.3.0.10

你可能感兴趣的:(SIFT:AttributeError: module 'cv2.cv2' has no attribute 'xfeatures2d')