AttributeError: 'module' object has no attribute 'xfeatures2d'
what happen with cv2.xfeatures2d.SIFT_create()
?
what happen with cv2.xfeatures2d.SIFT_create()
?
This error happens because there is no attribute with the name you called, for that Object. This means that you got the error when the "module" does not contain the method you are calling. But it is evident that the method is there, which leads to believe that may be the method was added by you in the python source code after you had already imported the file (module). Or, some times packages get deprecated and they rename some functions. If that is true, then you may want to exit and reimport the module once again to be able to access the new method. You can do it in another way to reimport the module with changes without having to exit the interpreter is to do the following:
import importlib
importlib.reload(myModule)
Asked: 2015-06-06 19:48:09 -0600
Seen: 2,755 times
Last updated: Sep 14 '20
Area of a single pixel object in OpenCV
Weird result while finding angle
cv2.perspectiveTransform() with Python
cv2 bindings incompatible with numpy.dstack function?
Getting single frames from video with python
Line detection and timestamps, video, Python
Different behaviour of OpenCV Python arguments in 32 and 64-bit systems