How to check matching location\position(SIFT)?
Hey, I am working on fingerprint recognition.
I am using SIFT to find minutiae points but I want not only to find the minutiae points I want to check if they are in the same place or region in both photos.
my code is:
sift = cv.SIFT_create()
keypoints_1, descriptors_1 = sift.detectAndCompute(img1,None)
keypoints_2, descriptors_2 = sift.detectAndCompute(img2,None)
bf = cv.BFMatcher(cv.NORM_L1, crossCheck=True)
matches = bf.match(descriptors_1,descriptors_2)
matches = sorted(matches, key = lambda x:x.distance)
img3 = cv.drawMatches(img1, keypoints_1, img2, keypoints_2, matches[:3], img2, flags=2)
plt.imshow(img3),plt.show()
print(len(matches))
with this code I can detect two simillar minutiae points but they can be in different positions and thats is my problem.
sorry, but you have to explain that.
also, example images ?
I mean they can be the same minutiae feature but one on x=50 y=60 and on the second photo it can be on x=1 y=1 so I dont care that they are the same feature I want them to be on the same location as well.
DMatch has a distance member