Python

Sample list

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 shows how the data from the camera can be used.

Instructions

Note

The recommended Python version for these samples is 3.7 - 3.9.

Note that Open3D is not available for Python 3.13 and later.

  1. Install Zivid Software.

  2. Download Zivid Sample Data.

  3. Check out the Zivid Python samples repository:

    git clone http://github.com/zivid/zivid-python-samples.git
    
  4. Install the runtime requirements using IDE or command line:

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

Note

If Open3D fails to install, ensure you are using a Python version supported by Open3D. Alternatively, you can install only dependencies required for non-Open3D samples by running:

pip install ./modules
  1. Open and run one of the samples.

    Note

    Running GUI samples on Windows should be done via pythonw.