Python

示例列表

There are two main categories of samples: Camera and Applications. The samples in the Camera category focus only on how to use the camera. The samples in the Applications category use the output generated by the camera, such as the 3D point cloud, a 2D image or other data from the camera. These samples show how the data from the camera can be used.

操作指南

备注

这些示例的推荐 Python 版本是 3.7 - 3.9 。

请注意,Open3D 不适用于 Python 3.13 及更高版本。

  1. 安装Zivid软件

  2. 下载Zivid Sample Data

  3. 查看 Zivid Python 示例存储库:

    git clone http://github.com/zivid/zivid-python-samples.git
    
  4. 使用IDE或命令行安装runtime requirements:

cd zivid-python-samples
pip install -r requirements.txt

备注

如果 Open3D 安装失败,请确保您使用的是 Open3D 支持的 Python 版本。或者,您也可以运行以下命令,仅安装非 Open3D 示例所需的依赖项:

pip install ./modules
  1. 打开并运行其中一个示例。

    备注

    在 Windows 上运行 GUI 示例应该通过 pythonw 完成。