Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to use BOWImgDescriptorExtractor in python - openCV ?

Hi,

I am a beginner to openCV and am trying to use python-openCV. I have version 2.4.10. In this I am trying to use the BOWImgDescriptorExtractor as follows :

extractor = cv2.BOWImgDescriptorExtractor(cv2.SURF(), cv2.BFMatcher(cv2.NORM_L2))

and am getting the following error :

extractor = cv2.BOWImgDescriptorExtractor(cv2.SURF(), cv2.BFMatcher(cv2.NORM_L2)) TypeError: Expected cv::DescriptorExtractor for argument 'dextractor'

Not sure how to resolve this since the namespace convention is not used in python.