Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Python OpenCV implementation to calculate keypoints and their descriptors with SIFT
# 1. Detect keypoints and their descriptors
# Based on:
# Initiate SIFT detector
sift = cv.SIFT_create()
# find the keypoints and descriptors with SIFT
kp1, des1 = sift.detectAndCompute(img1, None)
kp2, des2 = sift.detectAndCompute(img2, None)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment