Skip to content

Latest commit

 

History

History
49 lines (45 loc) · 20.3 KB

README.md

File metadata and controls

49 lines (45 loc) · 20.3 KB

Sample Code for Orbbec cameras

These simple examples demonstrate how to easily use the SDK to access the camera into your applications.

For detailed explanations and API documentation see our doc section.

List of Examples:

Name Language Description Notes
HelloOrbbec C++ Demonstrate connect to device to get SDK version and device info
QuickStart C++ This Quick Start Sample demonstrates using the minimum API to obtain data streams
DepthViewer C++ Demonstrate using SDK to get depth data and draw display, get resolution and set, display depth image
ColorViewer C++ Demonstrate using SDK to get color data and draw display, get resolution and set, display color image
InfraredViewer C++ Demonstrate using SDK to obtain infrared data and draw display, obtain resolution and set, display infrared image Gemini 2 XL、Gemini 330 Series obtains data through left IR or right IR, this Sample does not support, please refer to DoubleInfraredViewer example
CommonUsages C++ Demonstrate the setting and acquisition of commonly used control parameters
DoubleInfraredViewer C++ Demonstrate obtain left and right IR data of binocular cameras Currently, only the Gemini 2 XL、Gemini 330 Series supports
IMUReader C++ Get IMU data and output display The camera must have an IMU function
HotPlugin C++ Demonstrate the settings of the device plug and unplug callback, and get the stream processed after plugging and unplugging
SensorControl C++ Demonstrate manipulation of device and sensor control commands
DepthWorkMode C++ Demonstrate get current depth work mode, obtain supported depth work mode list, switch depth work mode. Some cameras support, Gemini 2, Gemini 2 L, Gemini 2 XL, Astra 2 support depth mode, you can switch different depth modes
SyncAlignViewer C++ Demonstrate operations on sensor data stream alignment
PointCloud C++ Demonstrate the generation of depth point cloud or RGBD point cloud and save it as ply format file Notes: This example start both Depth and Color streams, if the camera does not support Color streams (Gemini E Lite or Dabai DW) or the user does not need to start Color streams, then the code that start the Color stream and the code that sets D2C need to be removed
SaveToDisk C++ Get color and depth maps and save as png format
Recorder C++ Record current video stream to file MacOS not support this sample
Playback C++ Load video files for playback MacOS not support this sample
NetDevice C++ Demonstrates the acquisition of depth and color data through network mode Only cameras that support network functions can be used this sample, and currently the Femto Mega and Gemini 2 XL support network functions
MultiStream C++ Demonstrate one device to start Color, Ir, Depth, Gyro, Accel Sensor stream.
MultiDevice C++ Demonstrate operation on multiple devices
MultiDeviceSync C++ Demostrate how to config multiple devices synchronize config and how to start stream with this config
FirmwareUpgrade C++ Demonstrate upgrade device firmware
Transformation C++ Here is an example of how to invoke the functions of the CoordinateTransformHelper class, which is used for point transformation between different coordinate systems and generating undistorted depth point clouds and RGBD point clouds
Post-Processing C++ Demonstrate the post-processing functions Gemini 330 Series support
HdrMerge C++ Demonstrate the HDR function Gemini 330 Series support
AlignFilterViewer C++ Demonstrate the alignment operation of the sensor data stream, supporting D2C and C2D alignment Gemini 330 Series support
HelloOrbbec C Demonstrate connect to device to get SDK version and device information
DepthViewer C Demonstrate using SDK to get depth data and draw display, get resolution and set, display depth image
ColorViewer C Demonstrate using SDK to get color data and draw display, get resolution and set, display color image
InfraredViewer C Demonstrate using SDK to obtain infrared data and draw display, obtain resolution and set, display infrared image Gemini 2 XL、Gemini 330 Series obtains data through left IR or right IR, this Sample does not support, please refer to DoubleInfraredViewer example
DoubleInfraredViewer C Demonstrate obtain left and right IR data of binocular cameras Currently, only the Gemini 2 XL、Gemini 330 Series supports
SensorControl C Demonstrate the operation of device, sensor control commands
DepthWorkMode C Demonstrate get current depth work mode, obtain supported depth work mode list, switch depth work mode. Some cameras support, Gemini 2, Gemini 2 L, Gemini 2 XL, Astra 2 support depth mode, you can switch different depth modes
HotPlugin C Demonstrate device hot-plug monitoring, automatically connect the device to open depth streaming when the device is online, and automatically disconnect the device when it detects that the device is offline
PointCloud C Demonstrate the generation of depth point cloud or RGBD point cloud and save it as ply format file
NetDevice C Demonstrates the acquisition of depth and color data through network mode Only cameras that support network functions can be used this sample, and currently the Femto Mega and Gemini 2 XL support network functions
Post-Processing C Demonstrate the post-processing functions Gemini 330 Series support
HdrMerge C Demonstrate the HDR function Gemini 330 Series support
AlignFilterViewer C Demonstrate the alignment operation of the sensor data stream, supporting D2C and C2D alignment Gemini 330 Series support
FirmwareUpgrade C Demonstrate upgrade device firmware