图像拼接遇到module ‘cv2.cv2‘ has no attribute ‘xfeatures2d‘

简介: 图像拼接遇到module ‘cv2.cv2‘ has no attribute ‘xfeatures2d‘

opencv-contrib-Python编译module ‘cv2.cv2’ has no attribute ‘xfeatures2d’


这个是因为OpenCV版本的问题。


先把电脑本身的OpenCV卸载掉

pip uninstall opencv-contrib-python
pip uninstall opencv-python

在cmd里输入这两个命令

pip install opencv-python==3.4.2.16 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install opencv-contrib-python==3.4.2.16 -i https://pypi.tuna.tsinghua.edu.cn/simple

出现No module named ‘Cython’

pip install Cython

出现/usr/lib64/libstdc++.so.6: version `CXXABI_1.3.8‘ not found


1.把libstdc++.so.6.0.24拷贝到/usr/lib64目录下。

cp libstdc++.so.6.0.26 /usr/lib64/

2.删除原来的libstdc++.so.6符号连接。

mv libstdc++.so.6 libstdc++.so.6.bak

3.新建新符号连接。

ln -s libstdc++.so.6.0.26 libstdc++.so.6
目录
相关文章
|
计算机视觉
YOLO环境搭建报错:module 'cv2' has no attribute 'gapi wip_ gst GStreamerPipeline'
报错:module 'cv2' has no attribute 'gapi wip_ gst GStreamerPipeline'
2449 0
|
3月前
|
存储 计算机视觉
OpenCV 中 CV_8UC1,CV_32FC3,CV_32S等参数的含义
OpenCV 中 CV_8UC1,CV_32FC3,CV_32S等参数的含义
181 3
|
4月前
|
计算机视觉 Python
AttributeError: module ‘cv2‘ has no attribute ‘face‘
AttributeError: module ‘cv2‘ has no attribute ‘face‘
|
6月前
|
机器学习/深度学习
RuntimeError mat1 and mat2 shapes cannot be multiplied
RuntimeError mat1 and mat2 shapes cannot be multiplied
494 0
|
6月前
|
计算机视觉 Python
opencv cv::Range()和cv::Rect()用于crop来获得感兴趣区域
opencv cv::Range()和cv::Rect()用于crop来获得感兴趣区域
225 0
|
算法 计算机视觉 Python
【完美解决方案】module ‘cv2.cv2‘ has no attribute ‘xfeatures2d‘
【完美解决方案】module ‘cv2.cv2‘ has no attribute ‘xfeatures2d‘
1189 0
|
计算机视觉
【opencv】cv2.error: OpenCV(4.5.5) :-1: error: (-5:Bad argument) in function ‘imshow‘
【opencv】cv2.error: OpenCV(4.5.5) :-1: error: (-5:Bad argument) in function ‘imshow‘
813 0
【opencv】cv2.error: OpenCV(4.5.5) :-1: error: (-5:Bad argument) in function ‘imshow‘
|
计算机视觉
【事件图像】RGB Image conversion to event Image
【事件图像】RGB Image conversion to event Image
【事件图像】RGB Image conversion to event Image
|
计算机视觉
'cv2' has no attribute '_registerMatType 问题解决
'cv2' has no attribute '_registerMatType 问题解决
4327 0
成功解决AttributeError: module 'cv2.cv2' has no attribute 'CV_CAP_PROP_FPS'和 'CV_CAP_PROP_FRAME_WIDTH'
成功解决AttributeError: module 'cv2.cv2' has no attribute 'CV_CAP_PROP_FPS'和 'CV_CAP_PROP_FRAME_WIDTH'