This repository contains additional Python code samples for Zivid.
The basic samples come with Zivid Python - the official Python package for Zivid 3D cameras.
- capture_hdr_complete_settings - Capture an HDR frame with fully configured settings for each frame.
- capture_hdr_loop - Capture HDR frames in a loop (while actively changing some HDR settings).
- capture_hdr_separate_frames - Capture several individual frames and merge them into one HDR frame.
- capture_save_ply - Capture a ZDF point cloud and save it to PLY file format.
- connect_to_serial_number_camera - Connect to a specific Zivid camera based on its serial number.
- convert_zdf - Convert from ZDF to your preferred format (.ply, .csv, .txt, .png, .jpg, .bmp, .tiff).
- downsample - Import ZDF point cloud and downsample it.
- read_zdf - Import ZDF point cloud.
- read_zdf_vis_3d - Import ZDF point cloud and visualize it.
- read_zdf_without_zivid - Import ZDF point cloud without Zivid Software.
- zdf_2_csv_without_zivid - Convert ZDF point cloud to CSV format without Zivid Software.
- zdf_2_ply_without_zivid - Convert ZDF point cloud to PLY file format without Zivid Software.
- zdf_2_txt_without_zivid - Convert ZDF point cloud to TXT format without Zivid Software.
- zdf_with_opencv - Import a ZDF point cloud and convert it to RGB image and Depth map in OpenCV format.
-
Install Zivid Software. Note: The version tested with Zivid cameras is 1.7.0.
-
[Optional] Launch the Python IDE of your choice. Read our instructions on setting up Python.
-
Install the runtime requirements using IDE or command line:
pip install -r requirements.txt
-
Open and run one of the samples.
If you need assistance with using Zivid cameras, visit our Knowledge Base at https://help.zivid.com/ or contact us at customersuccess@zivid.com.
Zivid Samples are distributed under the BSD license.