gpt4 book ai didi

python - 使用 pip install 包含 OpenCV 的额外模块

转载 作者:太空宇宙 更新时间:2023-11-03 23:14:52 25 4
gpt4 key购买 nike

是否可以通过 pip 安装 opencv-python 来包含 OpenCV 的额外模块?我阅读了 pypi 页面,它目前不包含任何相关信息。

如果没有,最好的选择是卸载 pip 包并使用标志 brew 安装它吗?

最佳答案

从源代码构建 opencv 时,您必须单独编译 contrib 包,然后将 cmake 标记为 contrib 包。

假设和这一行:

At the same time it allows anyone to build a custom version of OpenCV for any Python version: just fork this repo and modify the build files and scripts to fit your needs

来自 pypi opencv page ,您可能必须 fork 和修改脚本以适应额外的包

关于python - 使用 pip install 包含 OpenCV 的额外模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41979700/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com