我正在尝试初始化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)