安装

To install Zivid Motion, install the Debian package (C++) or the Python wheel (Python), then verify the installation succeeded, as shown below for each language. Zivid Motion is available as a Python API and C++ API; other language support may be available in the future. Before installing, check the System Requirements for the supported OS, CPU, and GPU.

After receiving the Zivid Motion files, install the provided Debian packages, which contain the header files, shared library, and CMake module for Zivid Motion.

$ sudo apt install ./zivid-motion-*.deb

为了验证安装是否成功,您可以尝试使用 CMake 运行 Zivid Motion。

find_package(ZividMotion COMPONENTS Motion REQUIRED)
target_link_libraries(your_target PRIVATE Zivid::Motion)

收到 Zivid Motion 文件后,请安装提供的 Python wheel 包。

$ pip install zivid_pythonmotion-*.whl

要验证安装是否成功,请启动 Python 并确保可以导入 Zivid Motion。

>>> import zividmotion
>>> help(zividmotion)

安装 Zivid Motion 后,您可以从阅读 快速开始指南 开始。