kobejohn / python_brisk_demo

Quick demo using BRISK feature descriptors in Python to identify and then extract a target image from a scene.
MIT License
21 stars 13 forks source link

AttributeError: 'module' object has no attribute 'DescriptorExtractor_create' #2

Open RevanthKausikan opened 6 years ago

RevanthKausikan commented 6 years ago

Can you help me with this, please?

reddytocode commented 4 years ago

try installing opencv-contrib inside a virtualenv

zzpbuaa commented 3 years ago

I have installed with "pip install opencv-contrib-python", but it still said: AttributeError: module 'cv2.cv2' has no attribute 'DescriptorExtractor_create'

kobejohn commented 3 years ago

I have installed with "pip install opencv-contrib-python", but it still said: AttributeError: module 'cv2.cv2' has no attribute 'DescriptorExtractor_create'

I'm not sure why you got that. I just tried installing in a miniconda environment of py38 and it worked fine. It may be that you have conflicting versions with the regular opencv-python and opencv-contrib-python? I'm not sure. You would need to file an issue / ask with opencv-python owner. First I recommend trying a clean environment. Miniconda is great for scientific computing with python and other systems.