This project allows you to work with .svo files from a ZED camera, extract RGB images, depth maps and point clouds, as well as play video and visualize point clouds in 3D.
- Operating system: Windows (tested only on Windows and some lines are hard coded for Windows for now)
- Python 3.11
- Installed ZED SDK and its dependencies from the official website.
- Installed dependencies from
requirements.txt.
-
clone the repository or copy the project folder to your local disk.
-
open a terminal (PowerShell) and navigate to the root directory of the project:
cd /path/to/project -
(Optional) Create and activate the virtual environment:
python -m venv venv venv/cripts/activate # Windows PowerShell. -
Install the packages from
requirements.txt:pip install --upgrade pip pip install -r requirements.txt
-
make sure the ZED SDK is properly installed and configured.
-
If you have problems installing dependencies for this program or need a newer version of them, then more information can be found at Python API for the ZED SDK official repository on github.
/
├─── main.py # The main script that calls the interface
├─── ZedPlayer.py # Class that manages operations on the .svo file
├─── Visualize_point_cloud.py # Function to visualize point clouds in 3D
├─── requirements.txt # List of required Python libraries
├─── README.md # This file
└─── documentation.md # Detailed documentation of modules and functions
- main.py: The main menu of the program, allows you to choose and load the
.svofile or visualize the finished point cloud. - ZedPlayer.py:
ZedPlayerclass for RGB, depth, point cloud extraction, video playback and RGB → MP4 conversion. - Visualize_point_cloud.py: Function
visualize(npz_file)to load a saved point cloud (.npzfile) and display it in the Open3D environment. - requirements.txt: List of versions of libraries required for the project to work.
- documentation.md: Extensive documentation of all modules and functions (link below).
-
Make sure you have all the dependencies installed and (optionally) the virtual environment configured.
-
In the terminal (PowerShell), navigate to the folder with the code and run:
python main.py
-
the main menu will be displayed:
[WELCOME TO VISION IN DEPTH PROJECT] choose one of the options listed below.... [OPTION 1] Press 1 if you want to operate on video sample [OPTION 2] Press 2 to visualize in 3D already extracted point clouds from a file [OPTION 3] Press 3 to exit the program Option: -
Enter the appropriate digit (1 / 2 / 3) and confirm with Enter.
- 1: Select
.svofile and perform operations (RGB extraction, depth, clouds, video playback, conversion to MP4). - 2: Select
.npzfile (previously created point cloud) and display it in Open3D. - 3: Close the program.
For a full description of classes, methods and file formats, see documentation.md.