ZedSDK on Ubuntu22

Dependecies

Dowload and run the installer

#!/bin/bash

installer="ZED_SDK_Ubuntu_22_V4.2.zstd.run"

wget -O "$installer" https://download.stereolabs.com/zedsdk/4.2/cu12/ubuntu22

chmod +x "$installer"

./"$installer" -- silent

Python API Needs to be installed separately

Install dependencies and the API

python -m pip install cython numpy opencv-python pyopengl

sudo python3 /usr/local/zed/get_python_api.py

Note that since the API is installed with sudo you’ll need to run python scripts as sudo too. Else module pyzed.sl won’t be found.

Links

DepthAI on Ubuntu22

Install dependencies and DepthAI

sudo wget -qO- https://docs.luxonis.com/install_dependencies.sh | bash
python3 -m pip install depthai

Test installation

Here we’ll do a test installation to check that DepthAI sdk is working. We’ll use conda for convinience

Miniconda install

#!/bin/bash

installer="miniconda_installer.sh"

wget -O "$installer" https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh

bash "$installer"

Miniconda enviroment creation and activation

conda create --name depthai python=3.10
conda activate depthai

Setup DepthAI enviroment:

git clone https://github.com/luxonis/depthai-python.git
cd depthai-python\examples\
python3 install_requirements.py

And finally test the RGB camera

python3 ColorCamera/rgb_preview.py

Links