Python ';模块';对象没有属性';描述符x#u创建#x27;

Python ';模块';对象没有属性';描述符x#u创建#x27;,python,image,opencv,image-processing,computer-vision,Python,Image,Opencv,Image Processing,Computer Vision,我尝试使用BRISK提取描述符,如下所示: cv2.DescriptorExtractor_create('BRISK') 但是,出现以下错误: AttributeError: 'module' object has no attribute 'DescriptorExtractor_create' 为什么呢?我如何解决这个问题 谢谢。使用帮助命令将使用BRISK功能描述符清除空气。要使用它,请在终端控制台中键入以下命令: help(cv2.BRISK) 为了获得描述符,有一些先决条件:

我尝试使用
BRISK
提取描述符,如下所示:

cv2.DescriptorExtractor_create('BRISK')
但是,出现以下错误:

AttributeError: 'module' object has no attribute 'DescriptorExtractor_create'
为什么呢?我如何解决这个问题


谢谢。

使用
帮助
命令将使用BRISK功能描述符清除空气。要使用它,请在终端控制台中键入以下命令:

help(cv2.BRISK)
为了获得描述符,有一些先决条件:

  • 创建BRISK对象,这里
    f
    是类
    BRISK
    的对象:

    f=cv2.BRISK\u create()

  • 使用
    detect()
    方法查找给定图像的关键点
    img

    keypoints=f.detect(img)

  • 现在,使用图像和关键点,您可以获得描述符:

    descriptors=f.compute(img,关键点)


  • 看起来您正在使用opencv3。DescriptorExtractor_create在opencv3中与其他一些函数一起被删除。它只需
    cv2.BRISK_create()