def im_describe(*args, **kwargs):
"""
Describe image using dense sampling / specific detector-descriptor combination.
Sugar for description-only call.
"""
kpts, desc = im_detect_and_describe(*args, **kwargs)
return desc
# def color_codes(img, kpts):
# # Extract color information (Lab)
# pts = np.vstack([kp.pt for kp in kpts]).astype(np.int32)
# imgc = median_blur(img, size=5)
# cdesc = img[pts[:,1], pts[:,0]]
# return kpts, np.hstack([desc, cdesc])
# =====================================================================
# General-purpose object recognition interfaces, and functions
# ---------------------------------------------------------------------
评论列表
文章目录