def sift(img):
"""
Gets a list of 128 - dimensional descriptors using SIFT and DoG
for keypoints and resizes the image having the larger dimension set to 640
and keeping the size relation.
Args:
img (BGR matrix): The grayscale image that will be used.
Returns:
list of floats array: The descriptors found in the image.
"""
sift = cv2.SIFT()
kp, des = sift.detectAndCompute(img, None)
return des
评论列表
文章目录