OrbbecSDK_v2

C++ Sample: 3.advanced.preset

Overview

Use the SDK interface to set and get the preset value.

Knowledge

Pipeline is a pipeline for processing data streams, providing multi-channel stream configuration, switching, frame aggregation, and frame synchronization functions

Code overview

  1. Get preset list from device.

     std::shared_ptr<ob::DevicePresetList> presetLists = device->getAvailablePresetList();
    
  2. Get preset value from device.

         // Print current preset name.
         std::cout << "Current PresetName: " << device->getCurrentPresetName() << std::endl;
    
  3. Set preset value to device.

         // Load preset.
         device->loadPreset(presetName);
    

Run Sample

Press the button according to the interface prompts

Result

image