首页 > 解决方案 > 如何在 Windows 上使用 EIGEN 安装 opencv-contrib-python?

问题描述

我可以根据链接中的说明成功安装 opencv-contrib-python:

https://pypi.org/project/opencv-python/#description

但是,当我在我的 python 代码中调用函数 fastBilateralSolverFilter 时会发生一个错误。它说

错误:(-213:功能/特性未实现) fastBilateralSolverFilter :需要在函数 'cv::ximgproc::fastBilateralSolverFilter' 中使用 EIGEN 编译

导入 cv2 有效。如果我运行命令 dir(cv2.ximgproc),屏幕上会列出函数 fastBilateralSolverFilter。我知道 EIGEN 是一个数学库,但我想不出一种解决问题的方法。

标签: pythonopencveigen

解决方案


您可以通过 anaconda 安装 OpenCV 以避免编译。anaconda 的 OpenCV 包已经用 EIGEN 进行了预编译。

conda install -c conda-forge opencv

推荐阅读