我安装了将ximgproc作为子模块的opencv-contrib,使用以下代码:
pip install opencv_python-3.2.0+contrib-cp36-cp36m-win_amd64.whl当我运行下面的代码行时:
import cv2
# ...
right_matcher = cv2.ximgproc.createRightMatcher(left_matcher)我得到了这个错误:
AttributeError: module 'cv2.cv2' has no attribute 'ximgproc'如何使用ximgproc函数?
发布于 2019-11-15 23:04:56
我通过pip install opencv-python opencv-contrib-python安装了openCV和单独的contrib模块。这对我来说很好。如果你没有理由要手动安装openCV,你可以尝试一下。
有关GitHub repo of opencv-python的安装说明,请参阅此处
https://stackoverflow.com/questions/57618116
复制相似问题