OrbbecSDK_v2

Building Orbbec SDK

Requirements

For windows, you need:

For Linux, it is recommended to use Docker to build the Orbbec SDK, therefor, you only need:

For linux, if you want to build Orbbec SDK by using native toolchain, you need:

Clone Orbbec SDK

The Orbbec SDK souce code are available on GitHub. You can clone the Orbbec SDK by using the following commands:

git clone https://github.com/Orbbec/OrbbecSDK-dev.git

Build Orbbec SDK

You can build Orbbec SDK by using the following commands:

cd OrbbecSDK-dev
mkdir build
cd build
cmake ..
cmake --build . --config Release

If you are using Docker, you can using the script we provide to build Orbbec SDK.

cd OrbbecSDK-dev/scripts/build
./build_linux_docker.sh
# `./build_linux_docker.sh  aarch64` for arm64

More information about how to use Docker, please refer to README.md.

Run the Sample

After you build the Orbbec SDK, you can find the executable file in the directory OrbbecSDK-dev/build/win_XX/bin or OrbbecSDK-dev/build/linux_XX/bin.

Environment Setup

Windows

Metadata registration

For windows,you need to register the metadata associated with frames (this includes things like timestamps and other information about the video frame).

Linux

Please install it using the following commands:/scripts/env_setup/install_udev_rules.sh

cd OrbbecSDK-dev/scripts/env_setup
sudo chmod +x ./install_udev_rules.sh
sudo ./install_udev_rules.sh
sudo udevadm control --reload-rules && udevadm trigger

Connect to the camera

If the camera needs to be powered on, plug in the power cable and connect the camera to the host using USB.

Running the sample

cd bin
.\ob_XXX  #  .\ob_XXX.exe for windows

More information about the examples of Orbbec SDK, please refer to examples.