如何在OpenCV_2中启动Brief Extractor

时间:2019-05-23 07:38:40

标签: python opencv

我正在尝试初始化Brief Extractor,但出现以下错误:

  

module 'cv2.cv2' has no attribute 'DescriptorExtractor_create'

fast = cv2.FastFeatureDetector()

brief = cv2.DescriptorExtractor_create("BRIEF")

kp_1 = fast.detect(first, None)
kp_2 = fast.detect(second, None)

kp_1, desc_1 = brief.detect(first, kp_1)
kp_2, desc_2 = brief.detect(second, kp_2)

0 个答案:

没有答案