Skip to content
Branch: master
Find file History
Pull request Compare This branch is 13 commits ahead, 694 commits behind AlexeyAB:master.
Type Name Latest commit message Commit time
Failed to load latest commit information. Redirection to native YOLO May 16, 2019 add ZED samples Oct 25, 2018 PR #19 Improve python script Oct 1, 2019
preview.png Redirection to native YOLO May 16, 2019

Stereolabs ZED - YOLO 3D in Python

This package lets you use YOLO the deep learning object detector using the ZED stereo camera in Python 3.

The left image will be used to display the detected objects alongside the distance of each, using the ZED Depth.


Setup ZED Python

Download and install the ZED Python wrapper following the instructions, to make sure everything works you sould try a sample.

Setup Darknet

We will use a fork of darknet from @AlexeyAB :

  • It is already present in the folder libdarknet

  • Simply call make in the folder

      cd libdarknet
      make -j4
  • For more information regarding the compilation instructions, check the darknet Readme here

Setup the application

  • Download the model file, for instance Yolov3 tiny


Run the application

To launch the ZED with YOLO simply run the script :


The input parameters can be changed using the command line :

    python3 -c <config> -w <weight> -m <meta> -t <threshold> -s <svo_file>

For instance :

    python3 -c cfg/yolov3.cfg -w yolov3.weights -m cfg/ -t 0.5

To display the help :

    python3 -h
You can’t perform that action at this time.