This Quick Start Sample demonstrates using the minimum API to obtain data streams.
ob::Pipeline pipe;
OrbbecSDKConfig_v1.0.xml
, by default only enables Depth and Color streams. By modifying the configuration file, you can enable the IR stream. pipe.start();
auto frameSet = pipe.waitForFrames();
auto colorFrame = frameSet->colorFrame();
auto depthFrame = frameSet->depthFrame();
// Stop the Pipeline, no frame data will be generated
pipe.stop();