Configuring A Jetson Nano with the Stereo Labs Zed Camera — Parley Labs
6. Installing ZED Python API
We want to play around with the ZED using Python, so we’ll be installing the Python API. The ZED SDK needs to already be installed. Then we can proceed to install the remainder of the pre-requisites.
Prerequisites
- ZED SDK 2.8 and its dependency CUDA
- Python 3.5+ (x64). (Windows installer)
- C++ compiler (VS2015 recommended)
- Cython 0.26
- Numpy 1.13.1
Clone ZED Python API so we can install the pre-requisites using Pip3 then build and install the library.
Change directories to the newly cloned folder and install the required dependencies.
pip3 install -r requirements.txt
That will take a few minutes, once that’s done you can build and install the libraries for use in your projects. The build and install process takes about 4 minutes each.
python3 setup.py build
python3 setup.py install
If everything installed without errors, then you can go ahead and run the examples which will be our starting point for our next project.
We ran the Live Camera example, which is what we’ll be pulling into our next project for facial recognition + proximity sensing.
python examples/live_camera.py
Some Potential Issues
Jetson nano shuts off when turning on the camera: Not enough power will cause a shutdown/power off. example using USB power adapter that may only be 1–2A capable
Viewing zed explorer through vnc causes color issues and some console errors.
Next project: Face detection + proximity sensor using the ZED camera (based off Adam Geitgey’s Example + ZED Python API Live Camera Sample)
Originally published at https://parleylabs.com on June 6, 2019.