OpenCV2-Python-Tutorials icon indicating copy to clipboard operation
OpenCV2-Python-Tutorials copied to clipboard

SIFT

Open Rahmanzia3 opened this issue 6 years ago • 2 comments

import cv2 cv2.SIFT()

error: Exception has occurred: AttributeError module 'cv2.cv2' has no attribute 'SIFT'

I am using Opencv 4.1.1 python 3.7

Rahmanzia3 avatar Oct 07 '19 13:10 Rahmanzia3

It seems that SIFT have been removed. I solve this problem with pip install opencv-python==3.4.2.17 pip install opencv-contrib-python==3.4.2.17 and change cv2.SIFT to cv2.xfeatures2d.SIFT_create()

This works for me. Tell me it it works for you too.

Mauhing avatar Nov 07 '19 14:11 Mauhing

I replaced cv2.SIFT() to cv2.SIFT_create()

dombroks avatar Apr 25 '21 02:04 dombroks