I am trying to retrieve descriptors for key points that I have already found. I am using the following lines of code:
sift = cv2.SIFT()
self.features,des = sift.compute(self.gray,self.features)
However, I am receiving the error:
'cv2.SIFT' object has no attribute 'compute'
I don't understand why, because according to this link (http://docs.opencv.org/trunk/modules/nonfree/doc/feature_detection.html), this should be possible.
Would anyone know what is going on here?
I also noticed that:
cv2.SIFT.detectAndCompute(image, mask[, descriptors[, useProvidedKeypoints]]) → keypoints, descriptors¶
allows you to use already detected keypoints... would someone be able to tell me how to input the arguments correctly for this function to work? I don't need to use the mask
argument by the way.
Thank you for your help.