OpenCV的SIFT()不能用
OpenCV的SIFT()不能用,版权问题,只需回退OpenCV的版本即可
1
2
3
4
5
pip uninstall opencv-python
pip uninstall opencv-contrib-python
pip install opencv_python==3.4.2.16
pip install opencv-contrib-python==3.4.2.16
然后再打开一次python环境即可运行
1
2
import cv2
sift = cv2.SIFT()