Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Cannot find Brief DescriptorExtractor OpenCV 3.1

This is my Python code:

import cv2 import numpy as np

img = cv2.imread('image.jpg') gray= cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)

star = cv2.xfeatures2d.StarDetector_create()

brief = cv2.BriefDescriptorExtractor_create()

kp = star.detect(gray,None)

kp,des=brief.compute(img,kp)

cv2.imshow('img',img) cv2.waitKey(0) cv2.destroyAllWindows()Blockquote

I am getting this error: File "earBRIEFsample.py", line 9, in <module> brief = cv2.BriefDescriptorExtractor_create() AttributeError: 'module' object has no attribute 'BriefDescriptorExtractor_create'

I also use SUFR, SIFT, ORB, FastFeature algorithms from library and didn' t have problem.