1 Star 0 Fork 1

dongzhou/zed-python-api

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

Stereolabs ZED - Python Integration (beta)

This package lets you use the ZED stereo camera in Python 3.

Getting started

Prerequisites

Please check your python version with the following command. The result should be 3.5 or higer, check the tutorial here to manage multiple python versions on Linux.

python --version

Note: On Linux the version returned by python --version and sudo python --version might not be the same.

Cython and Numpy can be installed via pip.

python -m pip install cython numpy

Build the plugin

python setup.py build
python 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.

Use the plugin

Code

Import the packages in your Python terminal or file like this:

import pyzed.camera as zcam
import pyzed.core as mat
import pyzed.defines as sl
import pyzed.types as types
import pyzed.mesh as mesh
import numpy as np

Vectors operations like norm, sum, square, dot, cross, distance but also simple operations can be done with Numpy package.

N.B.: *pyzed.camera is linked with pyzed.core and pyzed.mesh packages so you must import pyzed.camera before pyzed.core and pyzed.mesh to avoid import errors.

Run the tutorials

The tutorials provide simple projects to show how to use each module of the ZED SDK. For a similar version using the C++ API checkout the Cpp tutorials.

Run the examples

Please refer to the examples README for more informations.

Contributing

This is a beta version of the wrapper. Feel free to open an issue if you find a bug, or a pull request for bug fixes, features or other improvements.

空文件

简介

Python API for the ZED SDK 展开 收起
README
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dong_zhou/zed-python-api.git
git@gitee.com:dong_zhou/zed-python-api.git
dong_zhou
zed-python-api
zed-python-api
v2.1.x

搜索帮助