AttributeError: 'module' object has no attribute 'SURF'

asked 2016-08-07 19:02:34 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Why do I get this error

SimpleCV:1> img = Image('./lfAeZ4n.png')

SimpleCV:2> feats = img.findKeypoints()

AttributeError Traceback (most recent call last) /usr/local/lib/python2.7/dist-packages/SimpleCV/Shell/Shell.pyc in <module>() ----> 1 feats = img.findKeypoints()

/usr/local/lib/python2.7/dist-packages/SimpleCV/ImageClass.pyc in findKeypoints( self, minquality, flavor, highQuality) 7985 kp,d = self.getRawKeypoints(thresh=minquality,forceReset=T rue,flavor=flavor,highQuality=1) 7986 else: -> 7987 kp,d = self.getRawKeypoints(thresh=min_quality,forceReset=T rue,flavor=flavor,highQuality=0) 7988 7989 if( flavor in ["ORB", "SIFT", "SURF"] and kp!=None and d !=None ):

/usr/local/lib/python2.7/dist-packages/SimpleCV/ImageClass.pyc in getRawKeypoin ts(self, thresh, flavor, highQuality, forceReset) 7578 elif( newversion == 2 and flavor in ["SURF", "FAST"] ): 7579 if( flavor == "SURF" ): -> 7580 surfer = cv2.SURF(hessianThreshold=thresh,extended=h ighQuality,upright=1) 7581 #mask = self.getGrayNumpy() 7582 #mask.fill(255)

AttributeError: 'module' object has no attribute 'SURF'

edit retag flag offensive close merge delete