Files
2026-02-04 15:42:08 +08:00
..
2026-02-04 15:42:08 +08:00
2026-02-04 15:42:08 +08:00
2026-02-04 15:42:08 +08:00
2026-02-04 15:42:08 +08:00
2026-02-04 15:42:08 +08:00
2026-02-04 15:42:08 +08:00
2026-02-04 15:42:08 +08:00
2026-02-04 15:42:08 +08:00

ZED SDK - Depth Sensing

This sample shows how to retreive the current point cloud.

Getting Started

Setting up (Optional)

For improved data retrieval and handling on GPU:

  • Install CuPy using pip
    pip install cupy-cuda11x  # For CUDA 11.x
    pip install cupy-cuda12x  # For CUDA 12.x
    
  • Install cuda bindings using pip
    pip install cuda-python
    

Run the program

To run the program, use the following command in your terminal :

python depth_sensing.py

If you wish to run the program from an input_svo_file, or an IP adress, or specify a resolution run :

python depth_sensing.py --input_svo_file <input_svo_file> --ip_address <ip_address> --resolution <resolution> 

Arguments:

  • --input_svo_file A path to an existing .svo file, that will be playbacked. If this parameter and ip_adress are not specified, the soft will use the camera wired as default.
  • --ip_address IP Address, in format a.b.c.d:port or a.b.c.d. If specified, the soft will try to connect to the IP.
  • --resolution Resolution, can be either HD2K, HD1200, HD1080, HD720, SVGA or VGA.
  • --disable_gpu Disable GPU acceleration even if CuPy is available.

Features

  • Camera live point cloud is retreived
  • An OpenGL windows displays it in 3D

Support

If you need assistance go to our Community site at https://community.stereolabs.com/