descriptors.py 文件源码

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

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


问题


面经


文章

微信
公众号

扫码关注公众号