python - 如何在 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 是一个数学库,但我想不出一种解决问题的方法。
解决方案
您可以通过 anaconda 安装 OpenCV 以避免编译。anaconda 的 OpenCV 包已经用 EIGEN 进行了预编译。
conda install -c conda-forge opencv
推荐阅读
- excel - Excel VBA 运行时错误 3706 提供程序 MSDAORA 找不到 ADODB.Connection
- firebase - Facebook 授权不适用于 Firebase 身份验证
- android - 当用户突然关闭android中的应用程序时会发生什么?
- excel - 使用 vba 获取列字母以更改但在 excel 宏中保持行号不变
- c# - Thinstuff多用户activex操作问题
- firebase - 如何从我在 Firebase 中上传的 PDF 中获取我的 http URL?
- controller - 位置控制的启发式方法(PID 控制器)
- node.js - 在 NodeJS 中,我如何等待 http2 客户端库 GET 调用的响应?
- python - 将最大日期与 pyspark 中的 current_timestamp 进行比较
- realm - 查询具有相同类型的两个字段的反向链接