系统环境:Win10+Python3.6.0+opencv-python3.2.07
安装
pip install opencv-python
pip install opencv-contrib-python
将程序里
sift = cv2.SIFT()
改为
sift = cv2.xfeatures2d.SIFT()
opencv版本更新后将sift()整合到了xfeatures2d当中。
系统环境:Win10+Python3.6.0+opencv-python3.2.07
安装
pip install opencv-python
pip install opencv-contrib-python
将程序里
sift = cv2.SIFT()
改为
sift = cv2.xfeatures2d.SIFT()
opencv版本更新后将sift()整合到了xfeatures2d当中。