Answers for "feature matching between image and video python"

0

feature matching between image and video python

# create BFMatcher object
bf = cv2.BFMatcher(cv2.NORM_HAMMING, crossCheck=True)

# Match descriptors.
matches = bf.match(des1,des2)

# Sort them in the order of their distance.
matches = sorted(matches, key = lambda x:x.distance)

# Draw first 10 matches.
img3 = cv2.drawMatches(img1,kp1,img2,kp2,matches[:10], flags=2)

plt.imshow(img3),plt.show()
Posted by: Guest on November-10-2020

Code answers related to "feature matching between image and video python"

Python Answers by Framework

Browse Popular Code Answers by Language