AttributeError: module ‘cv2.cv2‘ has no attribute ‘xfeatures2d‘&&&&&&& 在Linux环境下编译opencv

兄弟们对不住了,本来想写一篇博客的,但是不知道咋回事就安装成功了

dnf list installed | grep opencv
import cv2
sift = cv2.imread('/cloud/cloud_disk/users/huh/pcb/shuixin_11_26/groupall/00041000_temp.jpg')
print(cv2.__version__)
orb = cv2.ORB_create(1000)
sift = cv2.xfeatures2d.SIFT_create()

surf = cv2.xfeatures2d.SURF_create(hessianThreshold=400)

cv2版本是3.2.0

这是玄学,呜呜呜

你可能感兴趣的:(Linux,opencv,计算机视觉,人工智能)