Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.