Ask Your Question
0

Cannot find Brief DescriptorExtractor OpenCV 3.1

asked 2016-12-16 06:26:41 -0600

Fačko gravatar image

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.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2016-12-16 06:42:53 -0600

berak gravatar image

it's in xfeatures2d , so:

brief = cv2.xfeatures2d.BriefDescriptorExtractor_create()
edit flag offensive delete link more

Comments

Thank you.

Fačko gravatar imageFačko ( 2016-12-16 07:08:09 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-12-16 06:26:41 -0600

Seen: 3,008 times

Last updated: Dec 16 '16