Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Update license Sep 21, 2018
CMakeLists.txt Update for ZED SDK 2.3 Jan 19, 2018 minor update and fix Aug 10, 2017

Stereolabs ZED - Camera Control

This sample shows how to capture images with the ZED SDK and adjust camera settings.

Getting started


  • Windows 7 64bits or later, Ubuntu 16.04
  • ZED SDK and its dependencies (CUDA)

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 ..

Run the program

  • Navigate to the build directory and launch the executable

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



This sample demonstrates how to captures images and change camera settings with the ZED SDK. The following parameters can be changed:

  • Exposure
  • Gain
  • Saturation
  • Hue
  • Contrast
  • Brightness

Keyboard shortcuts

This table lists keyboard shortcuts that you can use in the sample application.

Parameter Description Hotkey
Switch settings Toggle between camera settings 's'
Increase settings value Increase current settings value '+'
Decrease settings value Decrease current settings value '-'
Reset Reset all parameters to default values 'r'
Exit Quit the application 'q'