descriptors.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:object-classification 作者: HenrYxZ 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号