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

前端 未结 10 1271
我寻月下人不归
我寻月下人不归 2020-12-01 15:39

This line:

sift = cv2.xfeatures2d.SIFT_create()

return error:

Traceback (most recent call last):
  File \"C:/Python27/openC         


        
10条回答
  •  日久生厌
    2020-12-01 16:32

    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
    

提交回复
热议问题