cv2下载之后还是报错

cv2下载之后还是报错

C:\Users\20989\AppData\Local\Programs\Python\Python310\python.exe D:/dachaung/daima/a.py
Traceback (most recent call last):
  File "D:\dachaung\daima\a.py", line 100, in <module>
    keypoints_image_right, keypoints_right, features_right = sift_keypoints_detect(image_right)
  File "D:\dachaung\daima\a.py", line 11, in sift_keypoints_detect
    sift = cv.xfeatures2d.SIFT_create()
AttributeError: module 'cv2' has no attribute 'xfeatures2d'

'xfeatures2d' 在contribute包中,还要用pip额外安装opencv-contrib-python