Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Visualize matched keypoints
# Draw the keypoint matches between both pictures
# Still based on:
draw_params = dict(matchColor=(0, 255, 0),
singlePointColor=(255, 0, 0),
keypoint_matches = cv.drawMatchesKnn(
img1, kp1, img2, kp2, matches[300:500], None, **draw_params)
cv.imshow("Keypoint matches", keypoint_matches)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment