This sample shows how to detect and track objects in space and display it. It demonstrates how to:
- Detect and track objects in the scene using the ZED SDK API
- Show the image with 3D bounding box in a similar way than ZED Unity Plugin but with OpenGL.
- First, download the latest version of the ZED SDK on stereolabs.com.
- For more information, read the ZED API documentation.
NOTE: A ZED 2 is required to run use this module.
- 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
Open a terminal in the sample directory and execute the following command:
- mkdir build
- cd build
- cmake ..
- make
-
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)
#define WITH_TRAJECTORIES
in GLViewer.hpp --> Add 3D trajectories view