This line:
sift = cv2.xfeatures2d.SIFT_create()
return error:
Traceback (most recent call last):
File \"C:/Python27/openC
I used to have similar problem as @srihegde said you can try to uninstall opencv-contrib-python package and reinstall again. You can also try to uninstall opencv-python package if you have one, since it might mess with the packages too.
This helped for me.
Uninstall:
pip3 uninstall opencv-contrib-python
pip3 uninstall opencv-python
And then install:
pip3 install opencv-contrib-python
pip3 install opencv-python