Skip to content

stereolabs/zed-3d-social-distancing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3D Social Distancing using the ZED

social distance example

This sample shows how to quantify social distancing measures. It demonstrates how to:

  • Detect and track objects in the scene using the ZED SDK API
  • Show the image with 3D bounding box with OpenGL
  • All processing are running on board.

Please refer to our blog post for more informations.

Getting started

NOTE: A ZED 2 is required to run use this module.

Prerequisites

  • Windows 10, Ubuntu LTS
  • ZED SDK and its dependencies (CUDA)
  • OpenCV

Build the program

Build for Windows

  • Create a "build" folder in the source folder
  • Open cmake-gui and select the source and build folders
  • Generate the Visual Studio Win64 solution
  • Open the resulting solution and change configuration to Release
  • Build solution

Build for Linux

Open a terminal in the sample directory and execute the following command:

  • mkdir build
  • cd build
  • cmake ..
  • make

Run the program

  • Navigate to the build directory and launch the executable

  • Or open a terminal in the build directory and run the sample :

    ./ZED_Object_Detection_Viewer <optional-parameters>
    
    * <optional-parameters> can be a resolution for example HD2K : `./ZED_Object_Detection_Viewer HD2K`
    * <optional-parameters> can be a SVO file for example : `./ZED_Object_Detection_Viewer path_to_svo.svo`
    * <optional-parameters> can be a IP stream input for example : `./ZED_Object_Detection_Viewer <ip>` where ip is the sender IP (Use Camera\ Streaming/Sender)
    

Support

If you need assistance go to our Community site at https://community.stereolabs.com/