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

README.md

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.

Prerequisites

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 : https://github.com/AlexeyAB/darknet

  • 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

      wget https://pjreddie.com/media/files/yolov3-tiny.weights
    

Run the application

To launch the ZED with YOLO simply run the script :

    python3 darknet_zed.py

The input parameters can be changed using the command line :

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

For instance :

    python3 darknet_zed.py -c cfg/yolov3.cfg -w yolov3.weights -m cfg/coco.data -t 0.5

To display the help :

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