1 Star 0 Fork 0

阿中瘦不了/zed-python-api

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Stereolabs ZED - Python API Sources (Advanced)

To install and use the Python wrapper please refer to this page instead

Getting started

Prerequisites

The ZED SDK 3.X compatible API can be found in the zedsdk_3.X branch.

Please check your python version with the following command. The result should be 3.7 or higher.

python --version

Cython and Numpy can be installed via pip.

python -m pip install cython numpy

Note: On Linux, it is advised to use the python3 command instead of python which by default point to python 2.7. To do so, the following packages python3-dev and python3-pip need to be installed.

python3 --version
pip3 install -r requirements.txt

Build the plugin

python setup.py build
python setup.py install

or on Linux

python3 setup.py build
python3 setup.py install

If an error occurs during the compilation, make sure that you're using the latest ZED SDK and that you installed an x64 version of python. python -c "import platform; print(platform.architecture())"

The packages .pyd for Windows or .so for Linux will be generated and installed.

You can use python setup.py cleanall to remove every cpp files generated and build directory.

Make sure to be out of the plugin driectory when using it. It will prevent Python from considering the pyzed folder of the plugin as the pyzed package.

Contributing

Feel free to open an issue if you find a bug, or a pull request for bug fixes, features or other improvements.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/qi-zezhong/zed-python-api.git
git@gitee.com:qi-zezhong/zed-python-api.git
qi-zezhong
zed-python-api
zed-python-api
master

搜索帮助