I have a problem with module SIFT (python)
Hi! I use Python 3.6 and OpenCV 3.4, I try to find epipolar geometry using script from tutorial (http://opencv-python-tutroals.readthe...) I know that there is a problem with SIFT module so I try to change it and that is part of my script:
import cv2
img1 = cv2.imread('DSC_0001.jpg',cv2.COLOR_RGB2GRAY) #queryimage # left image
img2 = cv2.imread('DSC_0002.jpg',cv2.COLOR_RGB2GRAY) #trainimage # right ima
kp1, des1 = cv2.xfeatures2d_SIFT.detectAndCompute(img1, None)
kp2, des2 = cv2.xfeatures2d_SIFT.detectAndCompute(img2, None)
But there is an error: TypeError: descriptor 'detectAndCompute' requires a 'cv2.Feature2D' object but received a 'numpy.ndarray'
I don't understand what I should give there as Fearure2D and I will be glad for any help :]