def orb(img):
"""
Calculate the ORB descriptors for an image and resizes the image
having the larger dimension set to 640 and keeping the size relation.
Args:
img (BGR matrix): The image that will be used.
Returns:
list of floats array: The descriptors found in the image.
"""
orb = cv2.ORB()
kp, des = orb.detectAndCompute(img, None)
return des
评论列表
文章目录