AttributeError: ‘module’ object has no attribute ‘xfeatures2d’ [Python/OpenCV 2.4]

I think you should install opencv-contrib-python instead. The module you’re using is not support in opencv-python. See opencv-contrib-python.

To install:

pip install opencv-contrib-python

Leave a Comment