【发布时间】:2017-03-02 00:55:11
【问题描述】:
我需要在我的主要编程语言是 Python 的项目的一部分中使用 ArUco C++ library。我无法在 Anaconda 环境中的系统上安装 python wrapper for ArUco。它只是抛出错误。所以我想我可以用 C++ 在 OpenCV 中安装和编写代码,并将结果传输到我的主要 Python 代码中。是否可以?
【问题讨论】:
-
是的,你可以用 cffi cffi.readthedocs.io/en/latest 来做这个,你也可以制作一个 C dll 并使用内置的 ctypes 库 docs.python.org/3/library/ctypes.html 在 python 中使用它
标签: python c++ opencv anaconda wrapper