This Quick Start Sample demonstrates using the minimum API to obtain data streams.
ob::Pipeline pipe;
2. Start the pipeline with default config,more info please refer to the 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();