Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

SIFT detection with opencv+python

$
0
0
When I use opencv to sift detection, program always wrong. It show: module 'cv2.cv2' has no attribute 'xfeatures2d'. I had download same version of opencv-python and opencv-contrib-python(3.3.0.10), but don't work. This is part of code: import cv2 import numpy as np import sys imgpath=r'D:\Users\Mr.Gao\Desktop\NewFile\computer vision\varese.jpg' img=cv2.imread(imgpath) gray=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) sift=cv2.xfeatures2d.SIFT_create() I use python 3.5, opencv 3.X

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>