descriptors.py 文件源码

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

项目:QScode 作者: PierreHao 项目源码 文件源码
def __init__(self, descriptor_type):
        self.rootsift = False
        lists = ['sift','rootsift','orb','surf']
        if descriptor_type is 'sift':
            self.lfe = cv2.SIFT()
        elif descriptor_type is 'surf':
            self.lfe = cv2.SURF()
        elif descriptor_type is 'rootsift':
            self.lfe = cv2.SIFT()
        elif descriptor_type is 'orb':
            self.lfe = cv2.ORB()
        else:
            assert(descriptor_type in lists)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号