AttributeError: module 'cv2.cv2' has no attribute 'ximgproc'
- 报错如下
- 解决方法
报错如下

解决方法
多安装一个opencv-contrib模块
sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python==3.4.2.16 opencv-contrib-python==3.4.2.16

AttributeError: module ‘cv2.cv2‘ has no attribute ‘ximgproc‘
阅读 82
2023-02-04

多安装一个opencv-contrib模块
sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python==3.4.2.16 opencv-contrib-python==3.4.2.16

相关推荐
精彩评论(0)