Repo symbol

depthai repository

depthai_v3

ROS Distro
humble

Repository Summary

Description
Checkout URI https://github.com/luxonis/depthai-core.git
VCS Type git
VCS Version ros-old-devel
Last Updated 2026-12-04
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
depthai_v3 3.13.0

README

DepthAI Library

Forum Docs License: MIT

DepthAI library for interfacing with Luxonis DepthAI hardware. It’s written in C++ and offers Python bindings out of the box.

OAK camera scanning an object

Important — You’re viewing the v3.x.y branch.

Documentation

Documentation is available over at Luxonis DepthAI API

Examples

Examples for both C++ and Python are available in the examples folder. To see how to build and run them see README.md for more information. To build the examples in C++ configure with the following option added:

cmake -S. -Bbuild -D'DEPTHAI_BUILD_EXAMPLES=ON'
cmake --build build

For the complete model-description YAML format, see nn_model_description.yaml.

Beta features

The beta namespace is a staging area for experimental DepthAI features. It allows new features to be developed and iterated on quickly before they are promoted to the main depthai namespace.

The API and behavior of beta features can change between releases without notice.

In C++, beta nodes are available under dai::beta::node:

auto node = pipeline.create<dai::beta::node::ClassificationParser>();

In Python, they are available under dai.beta.node:

node = pipeline.create(dai.beta.node.ClassificationParser)

On-device execution of Beta nodes is supported only on RVC4. If running Beta nodes on RVC2, DepthAI automatically configures beta nodes to run on the host.

Multi-device pipelines

Add multiple devices to a single pipeline by calling addDevice(...). The first device that you add becomes the master (default device): nodes created without an explicit device run on it. For more information, see the multi-device documentation. A code example can be found at multi_device_frame_sync.py.

pipeline = dai.Pipeline(False)                    # no implicit device
devA = pipeline.addDevice("10.0.0.10")            # promoted to master
devB = pipeline.addDevice("10.0.0.11")

camA = pipeline.create(dai.node.Camera).build(dai.CameraBoardSocket.CAM_A)          # master
camB = pipeline.create(dai.node.Camera, device=devB).build(dai.CameraBoardSocket.CAM_A)

sync = pipeline.create(dai.node.Sync)             # host Sync aligns both streams
sync.setRunOnHost(True)
camA.requestOutput((640, 400)).link(sync.inputs["a"])
camB.requestOutput((640, 400)).link(sync.inputs["b"])

Running on the device (standalone)

The pipeline process may itself run on an RVC4 and use the local device over shared memory, with further devices attached over the network:

local = pipeline.addDevice(dai.DeviceInfo.local())   # this RVC4, no search timeout
remote = pipeline.addDevice("10.0.0.11")             # a remote device over TCP

Requirements: outbound TCP to each remote device’s gate (port 11492) and XLink ports, and /tmp shared with the device runtime for the local socket. Note that DEPTHAI_PROTOCOL and DEPTHAI_DEVICE_ID_LIST are process-wide discovery filters - leave them unset (any) when mixing local and remote devices.

Dependencies

  • CMake >= 3.20
  • C/C++17 compiler
  • [Linux] libudev >= 1.0.0
  • Docker engine on an x86-64 host with bash, to build the RVC4 firmware (see Building the FW to skip it)
  • [optional] OpenCV 4 (required if building examples and for record and replay)
  • [optional] PCL (required for point cloud example)

To install them:

  • libudev (Debian, Ubuntu): sudo apt install libudev-dev
  • OpenCV: brew install opencv (macOS), sudo apt install libopencv-dev (Linux), choco install opencv (Windows)
  • PCL: brew install pcl (macOS), sudo apt install libpcl-dev (Linux)

File truncated at 100 lines see the full file

Repo symbol

depthai repository

depthai_v3

ROS Distro
jazzy

Repository Summary

Description
Checkout URI https://github.com/luxonis/depthai-core.git
VCS Type git
VCS Version ros-old-devel
Last Updated 2026-12-04
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
depthai_v3 3.13.0

README

DepthAI Library

Forum Docs License: MIT

DepthAI library for interfacing with Luxonis DepthAI hardware. It’s written in C++ and offers Python bindings out of the box.

OAK camera scanning an object

Important — You’re viewing the v3.x.y branch.

Documentation

Documentation is available over at Luxonis DepthAI API

Examples

Examples for both C++ and Python are available in the examples folder. To see how to build and run them see README.md for more information. To build the examples in C++ configure with the following option added:

cmake -S. -Bbuild -D'DEPTHAI_BUILD_EXAMPLES=ON'
cmake --build build

For the complete model-description YAML format, see nn_model_description.yaml.

Beta features

The beta namespace is a staging area for experimental DepthAI features. It allows new features to be developed and iterated on quickly before they are promoted to the main depthai namespace.

The API and behavior of beta features can change between releases without notice.

In C++, beta nodes are available under dai::beta::node:

auto node = pipeline.create<dai::beta::node::ClassificationParser>();

In Python, they are available under dai.beta.node:

node = pipeline.create(dai.beta.node.ClassificationParser)

On-device execution of Beta nodes is supported only on RVC4. If running Beta nodes on RVC2, DepthAI automatically configures beta nodes to run on the host.

Multi-device pipelines

Add multiple devices to a single pipeline by calling addDevice(...). The first device that you add becomes the master (default device): nodes created without an explicit device run on it. For more information, see the multi-device documentation. A code example can be found at multi_device_frame_sync.py.

pipeline = dai.Pipeline(False)                    # no implicit device
devA = pipeline.addDevice("10.0.0.10")            # promoted to master
devB = pipeline.addDevice("10.0.0.11")

camA = pipeline.create(dai.node.Camera).build(dai.CameraBoardSocket.CAM_A)          # master
camB = pipeline.create(dai.node.Camera, device=devB).build(dai.CameraBoardSocket.CAM_A)

sync = pipeline.create(dai.node.Sync)             # host Sync aligns both streams
sync.setRunOnHost(True)
camA.requestOutput((640, 400)).link(sync.inputs["a"])
camB.requestOutput((640, 400)).link(sync.inputs["b"])

Running on the device (standalone)

The pipeline process may itself run on an RVC4 and use the local device over shared memory, with further devices attached over the network:

local = pipeline.addDevice(dai.DeviceInfo.local())   # this RVC4, no search timeout
remote = pipeline.addDevice("10.0.0.11")             # a remote device over TCP

Requirements: outbound TCP to each remote device’s gate (port 11492) and XLink ports, and /tmp shared with the device runtime for the local socket. Note that DEPTHAI_PROTOCOL and DEPTHAI_DEVICE_ID_LIST are process-wide discovery filters - leave them unset (any) when mixing local and remote devices.

Dependencies

  • CMake >= 3.20
  • C/C++17 compiler
  • [Linux] libudev >= 1.0.0
  • Docker engine on an x86-64 host with bash, to build the RVC4 firmware (see Building the FW to skip it)
  • [optional] OpenCV 4 (required if building examples and for record and replay)
  • [optional] PCL (required for point cloud example)

To install them:

  • libudev (Debian, Ubuntu): sudo apt install libudev-dev
  • OpenCV: brew install opencv (macOS), sudo apt install libopencv-dev (Linux), choco install opencv (Windows)
  • PCL: brew install pcl (macOS), sudo apt install libpcl-dev (Linux)

File truncated at 100 lines see the full file

Repo symbol

depthai repository

depthai

ROS Distro
kilted

Repository Summary

Description
Checkout URI https://github.com/luxonis/depthai-core.git
VCS Type git
VCS Version ros-devel
Last Updated 2026-12-04
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
depthai 3.13.0

README

DepthAI Library

Forum Docs License: MIT

DepthAI library for interfacing with Luxonis DepthAI hardware. It’s written in C++ and offers Python bindings out of the box.

OAK camera scanning an object

Important — You’re viewing the v3.x.y branch.

Documentation

Documentation is available over at Luxonis DepthAI API

Examples

Examples for both C++ and Python are available in the examples folder. To see how to build and run them see README.md for more information. To build the examples in C++ configure with the following option added:

cmake -S. -Bbuild -D'DEPTHAI_BUILD_EXAMPLES=ON'
cmake --build build

For the complete model-description YAML format, see nn_model_description.yaml.

Beta features

The beta namespace is a staging area for experimental DepthAI features. It allows new features to be developed and iterated on quickly before they are promoted to the main depthai namespace.

The API and behavior of beta features can change between releases without notice.

In C++, beta nodes are available under dai::beta::node:

auto node = pipeline.create<dai::beta::node::ClassificationParser>();

In Python, they are available under dai.beta.node:

node = pipeline.create(dai.beta.node.ClassificationParser)

On-device execution of Beta nodes is supported only on RVC4. If running Beta nodes on RVC2, DepthAI automatically configures beta nodes to run on the host.

Multi-device pipelines

Add multiple devices to a single pipeline by calling addDevice(...). The first device that you add becomes the master (default device): nodes created without an explicit device run on it. For more information, see the multi-device documentation. A code example can be found at multi_device_frame_sync.py.

pipeline = dai.Pipeline(False)                    # no implicit device
devA = pipeline.addDevice("10.0.0.10")            # promoted to master
devB = pipeline.addDevice("10.0.0.11")

camA = pipeline.create(dai.node.Camera).build(dai.CameraBoardSocket.CAM_A)          # master
camB = pipeline.create(dai.node.Camera, device=devB).build(dai.CameraBoardSocket.CAM_A)

sync = pipeline.create(dai.node.Sync)             # host Sync aligns both streams
sync.setRunOnHost(True)
camA.requestOutput((640, 400)).link(sync.inputs["a"])
camB.requestOutput((640, 400)).link(sync.inputs["b"])

Running on the device (standalone)

The pipeline process may itself run on an RVC4 and use the local device over shared memory, with further devices attached over the network:

local = pipeline.addDevice(dai.DeviceInfo.local())   # this RVC4, no search timeout
remote = pipeline.addDevice("10.0.0.11")             # a remote device over TCP

Requirements: outbound TCP to each remote device’s gate (port 11492) and XLink ports, and /tmp shared with the device runtime for the local socket. Note that DEPTHAI_PROTOCOL and DEPTHAI_DEVICE_ID_LIST are process-wide discovery filters - leave them unset (any) when mixing local and remote devices.

Dependencies

  • CMake >= 3.20
  • C/C++17 compiler
  • [Linux] libudev >= 1.0.0
  • Docker engine on an x86-64 host with bash, to build the RVC4 firmware (see Building the FW to skip it)
  • [optional] OpenCV 4 (required if building examples and for record and replay)
  • [optional] PCL (required for point cloud example)

To install them:

  • libudev (Debian, Ubuntu): sudo apt install libudev-dev
  • OpenCV: brew install opencv (macOS), sudo apt install libopencv-dev (Linux), choco install opencv (Windows)
  • PCL: brew install pcl (macOS), sudo apt install libpcl-dev (Linux)

File truncated at 100 lines see the full file

Repo symbol

depthai repository

depthai

ROS Distro
lyrical

Repository Summary

Description
Checkout URI https://github.com/luxonis/depthai-core.git
VCS Type git
VCS Version ros-devel
Last Updated 2026-12-04
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
depthai 3.13.0

README

DepthAI Library

Forum Docs License: MIT

DepthAI library for interfacing with Luxonis DepthAI hardware. It’s written in C++ and offers Python bindings out of the box.

OAK camera scanning an object

Important — You’re viewing the v3.x.y branch.

Documentation

Documentation is available over at Luxonis DepthAI API

Examples

Examples for both C++ and Python are available in the examples folder. To see how to build and run them see README.md for more information. To build the examples in C++ configure with the following option added:

cmake -S. -Bbuild -D'DEPTHAI_BUILD_EXAMPLES=ON'
cmake --build build

For the complete model-description YAML format, see nn_model_description.yaml.

Beta features

The beta namespace is a staging area for experimental DepthAI features. It allows new features to be developed and iterated on quickly before they are promoted to the main depthai namespace.

The API and behavior of beta features can change between releases without notice.

In C++, beta nodes are available under dai::beta::node:

auto node = pipeline.create<dai::beta::node::ClassificationParser>();

In Python, they are available under dai.beta.node:

node = pipeline.create(dai.beta.node.ClassificationParser)

On-device execution of Beta nodes is supported only on RVC4. If running Beta nodes on RVC2, DepthAI automatically configures beta nodes to run on the host.

Multi-device pipelines

Add multiple devices to a single pipeline by calling addDevice(...). The first device that you add becomes the master (default device): nodes created without an explicit device run on it. For more information, see the multi-device documentation. A code example can be found at multi_device_frame_sync.py.

pipeline = dai.Pipeline(False)                    # no implicit device
devA = pipeline.addDevice("10.0.0.10")            # promoted to master
devB = pipeline.addDevice("10.0.0.11")

camA = pipeline.create(dai.node.Camera).build(dai.CameraBoardSocket.CAM_A)          # master
camB = pipeline.create(dai.node.Camera, device=devB).build(dai.CameraBoardSocket.CAM_A)

sync = pipeline.create(dai.node.Sync)             # host Sync aligns both streams
sync.setRunOnHost(True)
camA.requestOutput((640, 400)).link(sync.inputs["a"])
camB.requestOutput((640, 400)).link(sync.inputs["b"])

Running on the device (standalone)

The pipeline process may itself run on an RVC4 and use the local device over shared memory, with further devices attached over the network:

local = pipeline.addDevice(dai.DeviceInfo.local())   # this RVC4, no search timeout
remote = pipeline.addDevice("10.0.0.11")             # a remote device over TCP

Requirements: outbound TCP to each remote device’s gate (port 11492) and XLink ports, and /tmp shared with the device runtime for the local socket. Note that DEPTHAI_PROTOCOL and DEPTHAI_DEVICE_ID_LIST are process-wide discovery filters - leave them unset (any) when mixing local and remote devices.

Dependencies

  • CMake >= 3.20
  • C/C++17 compiler
  • [Linux] libudev >= 1.0.0
  • Docker engine on an x86-64 host with bash, to build the RVC4 firmware (see Building the FW to skip it)
  • [optional] OpenCV 4 (required if building examples and for record and replay)
  • [optional] PCL (required for point cloud example)

To install them:

  • libudev (Debian, Ubuntu): sudo apt install libudev-dev
  • OpenCV: brew install opencv (macOS), sudo apt install libopencv-dev (Linux), choco install opencv (Windows)
  • PCL: brew install pcl (macOS), sudo apt install libpcl-dev (Linux)

File truncated at 100 lines see the full file

No version for distro rolling showing humble. Known supported distros are highlighted in the buttons above.
Repo symbol

depthai repository

depthai_v3

ROS Distro
humble

Repository Summary

Description
Checkout URI https://github.com/luxonis/depthai-core.git
VCS Type git
VCS Version ros-old-devel
Last Updated 2026-12-04
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
depthai_v3 3.13.0

README

DepthAI Library

Forum Docs License: MIT

DepthAI library for interfacing with Luxonis DepthAI hardware. It’s written in C++ and offers Python bindings out of the box.

OAK camera scanning an object

Important — You’re viewing the v3.x.y branch.

Documentation

Documentation is available over at Luxonis DepthAI API

Examples

Examples for both C++ and Python are available in the examples folder. To see how to build and run them see README.md for more information. To build the examples in C++ configure with the following option added:

cmake -S. -Bbuild -D'DEPTHAI_BUILD_EXAMPLES=ON'
cmake --build build

For the complete model-description YAML format, see nn_model_description.yaml.

Beta features

The beta namespace is a staging area for experimental DepthAI features. It allows new features to be developed and iterated on quickly before they are promoted to the main depthai namespace.

The API and behavior of beta features can change between releases without notice.

In C++, beta nodes are available under dai::beta::node:

auto node = pipeline.create<dai::beta::node::ClassificationParser>();

In Python, they are available under dai.beta.node:

node = pipeline.create(dai.beta.node.ClassificationParser)

On-device execution of Beta nodes is supported only on RVC4. If running Beta nodes on RVC2, DepthAI automatically configures beta nodes to run on the host.

Multi-device pipelines

Add multiple devices to a single pipeline by calling addDevice(...). The first device that you add becomes the master (default device): nodes created without an explicit device run on it. For more information, see the multi-device documentation. A code example can be found at multi_device_frame_sync.py.

pipeline = dai.Pipeline(False)                    # no implicit device
devA = pipeline.addDevice("10.0.0.10")            # promoted to master
devB = pipeline.addDevice("10.0.0.11")

camA = pipeline.create(dai.node.Camera).build(dai.CameraBoardSocket.CAM_A)          # master
camB = pipeline.create(dai.node.Camera, device=devB).build(dai.CameraBoardSocket.CAM_A)

sync = pipeline.create(dai.node.Sync)             # host Sync aligns both streams
sync.setRunOnHost(True)
camA.requestOutput((640, 400)).link(sync.inputs["a"])
camB.requestOutput((640, 400)).link(sync.inputs["b"])

Running on the device (standalone)

The pipeline process may itself run on an RVC4 and use the local device over shared memory, with further devices attached over the network:

local = pipeline.addDevice(dai.DeviceInfo.local())   # this RVC4, no search timeout
remote = pipeline.addDevice("10.0.0.11")             # a remote device over TCP

Requirements: outbound TCP to each remote device’s gate (port 11492) and XLink ports, and /tmp shared with the device runtime for the local socket. Note that DEPTHAI_PROTOCOL and DEPTHAI_DEVICE_ID_LIST are process-wide discovery filters - leave them unset (any) when mixing local and remote devices.

Dependencies

  • CMake >= 3.20
  • C/C++17 compiler
  • [Linux] libudev >= 1.0.0
  • Docker engine on an x86-64 host with bash, to build the RVC4 firmware (see Building the FW to skip it)
  • [optional] OpenCV 4 (required if building examples and for record and replay)
  • [optional] PCL (required for point cloud example)

To install them:

  • libudev (Debian, Ubuntu): sudo apt install libudev-dev
  • OpenCV: brew install opencv (macOS), sudo apt install libopencv-dev (Linux), choco install opencv (Windows)
  • PCL: brew install pcl (macOS), sudo apt install libpcl-dev (Linux)

File truncated at 100 lines see the full file

No version for distro github showing humble. Known supported distros are highlighted in the buttons above.
Repo symbol

depthai repository

depthai_v3

ROS Distro
humble

Repository Summary

Description
Checkout URI https://github.com/luxonis/depthai-core.git
VCS Type git
VCS Version ros-old-devel
Last Updated 2026-12-04
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
depthai_v3 3.13.0

README

DepthAI Library

Forum Docs License: MIT

DepthAI library for interfacing with Luxonis DepthAI hardware. It’s written in C++ and offers Python bindings out of the box.

OAK camera scanning an object

Important — You’re viewing the v3.x.y branch.

Documentation

Documentation is available over at Luxonis DepthAI API

Examples

Examples for both C++ and Python are available in the examples folder. To see how to build and run them see README.md for more information. To build the examples in C++ configure with the following option added:

cmake -S. -Bbuild -D'DEPTHAI_BUILD_EXAMPLES=ON'
cmake --build build

For the complete model-description YAML format, see nn_model_description.yaml.

Beta features

The beta namespace is a staging area for experimental DepthAI features. It allows new features to be developed and iterated on quickly before they are promoted to the main depthai namespace.

The API and behavior of beta features can change between releases without notice.

In C++, beta nodes are available under dai::beta::node:

auto node = pipeline.create<dai::beta::node::ClassificationParser>();

In Python, they are available under dai.beta.node:

node = pipeline.create(dai.beta.node.ClassificationParser)

On-device execution of Beta nodes is supported only on RVC4. If running Beta nodes on RVC2, DepthAI automatically configures beta nodes to run on the host.

Multi-device pipelines

Add multiple devices to a single pipeline by calling addDevice(...). The first device that you add becomes the master (default device): nodes created without an explicit device run on it. For more information, see the multi-device documentation. A code example can be found at multi_device_frame_sync.py.

pipeline = dai.Pipeline(False)                    # no implicit device
devA = pipeline.addDevice("10.0.0.10")            # promoted to master
devB = pipeline.addDevice("10.0.0.11")

camA = pipeline.create(dai.node.Camera).build(dai.CameraBoardSocket.CAM_A)          # master
camB = pipeline.create(dai.node.Camera, device=devB).build(dai.CameraBoardSocket.CAM_A)

sync = pipeline.create(dai.node.Sync)             # host Sync aligns both streams
sync.setRunOnHost(True)
camA.requestOutput((640, 400)).link(sync.inputs["a"])
camB.requestOutput((640, 400)).link(sync.inputs["b"])

Running on the device (standalone)

The pipeline process may itself run on an RVC4 and use the local device over shared memory, with further devices attached over the network:

local = pipeline.addDevice(dai.DeviceInfo.local())   # this RVC4, no search timeout
remote = pipeline.addDevice("10.0.0.11")             # a remote device over TCP

Requirements: outbound TCP to each remote device’s gate (port 11492) and XLink ports, and /tmp shared with the device runtime for the local socket. Note that DEPTHAI_PROTOCOL and DEPTHAI_DEVICE_ID_LIST are process-wide discovery filters - leave them unset (any) when mixing local and remote devices.

Dependencies

  • CMake >= 3.20
  • C/C++17 compiler
  • [Linux] libudev >= 1.0.0
  • Docker engine on an x86-64 host with bash, to build the RVC4 firmware (see Building the FW to skip it)
  • [optional] OpenCV 4 (required if building examples and for record and replay)
  • [optional] PCL (required for point cloud example)

To install them:

  • libudev (Debian, Ubuntu): sudo apt install libudev-dev
  • OpenCV: brew install opencv (macOS), sudo apt install libopencv-dev (Linux), choco install opencv (Windows)
  • PCL: brew install pcl (macOS), sudo apt install libpcl-dev (Linux)

File truncated at 100 lines see the full file

Repo symbol

depthai repository

depthai

ROS Distro
galactic

Repository Summary

Description
Checkout URI https://github.com/luxonis/depthai-core.git
VCS Type git
VCS Version ros-release
Last Updated 2026-11-02
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
depthai 2.33.0

README

DepthAI C++ Library

Forum Docs License: MIT

Core C++ library

Important — You’re viewing the v2.x.y branch.

  • For the latest version with support for RVC4 devices, please switch to the main branch.

Documentation

Documentation is available over at Luxonis DepthAI API

Disclaimer

DepthAI library doesn’t yet provide API stability guarantees. While we take care to properly deprecate old functions, some changes might still be breaking. We expect to provide API stability from version 3.0.0 onwards.

Dependencies

  • CMake >= 3.10
  • C/C++14 compiler
  • [optional] OpenCV 4 (required if building examples)
  • [optional] PCL (required for point cloud example)

To install OpenCV: MacOS: brew install opencv Linux: sudo apt install libopencv-dev

To install PCL: MacOS: brew install pcl Linux: sudo apt install libpcl-dev

ℹ️ On Linux distributions based on RPMs, you need to install perl-core required by OpenSSL dependency.

sudo yum install perl-core

Another option is to disable CURL support by setting DEPTHAI_ENABLE_CURL=OFF when configuring CMake.

cmake -S. -Bbuild -D'DEPTHAI_ENABLE_CURL=OFF'

Building

Make sure submodules are updated

git submodule update --init --recursive

Then configure and build

cmake -S. -Bbuild
cmake --build build

ℹ️ To speed up build times, use cmake --build build --parallel [num CPU cores] (CMake >= 3.12). For older versions use: Linux/macOS: cmake --build build -- -j[num CPU cores], MSVC: cmake --build build -- /MP[num CPU cores]

⚠️ If any CMake commands error with CMake Error: The source directory "" does not exist. replace argument -S with -H

Dynamic library

To build dynamic version of library configure with following option added

cmake -S. -Bbuild -D'BUILD_SHARED_LIBS=ON'
cmake --build build

Android

Android is supported to some extent but not actively pursued nor tested. PRs with any improvements are welcome.

Steps:

  • Install Android NDK (for example via Android Studio).
  • Set the NDK path:
export ANDROID_HOME=$HOME/.local/lib/Android
export PATH=$PATH:$ANDROID_HOME/emulator:$ANDROID_HOME/platform-tools
export NDK=$ANDROID_HOME/ndk/23.1.7779620/ # Check version

  • Ensure a recent version of cmake (apt version is outdated, install snap install cmake –classic)
  • Run cmake, set your ABI and Platform as needed:
cmake -S. -Bbuild -DCMAKE_TOOLCHAIN_FILE=$NDK/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-25
cmake --build build

Running examples

To build the examples configure with following option added

cmake -S. -Bbuild -D'DEPTHAI_BUILD_EXAMPLES=ON'
cmake --build build

File truncated at 100 lines see the full file

Repo symbol

depthai repository

depthai

ROS Distro
iron

Repository Summary

Description
Checkout URI https://github.com/luxonis/depthai-core.git
VCS Type git
VCS Version ros-release
Last Updated 2026-11-02
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
depthai 2.33.0

README

DepthAI C++ Library

Forum Docs License: MIT

Core C++ library

Important — You’re viewing the v2.x.y branch.

  • For the latest version with support for RVC4 devices, please switch to the main branch.

Documentation

Documentation is available over at Luxonis DepthAI API

Disclaimer

DepthAI library doesn’t yet provide API stability guarantees. While we take care to properly deprecate old functions, some changes might still be breaking. We expect to provide API stability from version 3.0.0 onwards.

Dependencies

  • CMake >= 3.10
  • C/C++14 compiler
  • [optional] OpenCV 4 (required if building examples)
  • [optional] PCL (required for point cloud example)

To install OpenCV: MacOS: brew install opencv Linux: sudo apt install libopencv-dev

To install PCL: MacOS: brew install pcl Linux: sudo apt install libpcl-dev

ℹ️ On Linux distributions based on RPMs, you need to install perl-core required by OpenSSL dependency.

sudo yum install perl-core

Another option is to disable CURL support by setting DEPTHAI_ENABLE_CURL=OFF when configuring CMake.

cmake -S. -Bbuild -D'DEPTHAI_ENABLE_CURL=OFF'

Building

Make sure submodules are updated

git submodule update --init --recursive

Then configure and build

cmake -S. -Bbuild
cmake --build build

ℹ️ To speed up build times, use cmake --build build --parallel [num CPU cores] (CMake >= 3.12). For older versions use: Linux/macOS: cmake --build build -- -j[num CPU cores], MSVC: cmake --build build -- /MP[num CPU cores]

⚠️ If any CMake commands error with CMake Error: The source directory "" does not exist. replace argument -S with -H

Dynamic library

To build dynamic version of library configure with following option added

cmake -S. -Bbuild -D'BUILD_SHARED_LIBS=ON'
cmake --build build

Android

Android is supported to some extent but not actively pursued nor tested. PRs with any improvements are welcome.

Steps:

  • Install Android NDK (for example via Android Studio).
  • Set the NDK path:
export ANDROID_HOME=$HOME/.local/lib/Android
export PATH=$PATH:$ANDROID_HOME/emulator:$ANDROID_HOME/platform-tools
export NDK=$ANDROID_HOME/ndk/23.1.7779620/ # Check version

  • Ensure a recent version of cmake (apt version is outdated, install snap install cmake –classic)
  • Run cmake, set your ABI and Platform as needed:
cmake -S. -Bbuild -DCMAKE_TOOLCHAIN_FILE=$NDK/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-25
cmake --build build

Running examples

To build the examples configure with following option added

cmake -S. -Bbuild -D'DEPTHAI_BUILD_EXAMPLES=ON'
cmake --build build

File truncated at 100 lines see the full file

No version for distro melodic showing humble. Known supported distros are highlighted in the buttons above.
Repo symbol

depthai repository

depthai_v3

ROS Distro
humble

Repository Summary

Description
Checkout URI https://github.com/luxonis/depthai-core.git
VCS Type git
VCS Version ros-old-devel
Last Updated 2026-12-04
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
depthai_v3 3.13.0

README

DepthAI Library

Forum Docs License: MIT

DepthAI library for interfacing with Luxonis DepthAI hardware. It’s written in C++ and offers Python bindings out of the box.

OAK camera scanning an object

Important — You’re viewing the v3.x.y branch.

Documentation

Documentation is available over at Luxonis DepthAI API

Examples

Examples for both C++ and Python are available in the examples folder. To see how to build and run them see README.md for more information. To build the examples in C++ configure with the following option added:

cmake -S. -Bbuild -D'DEPTHAI_BUILD_EXAMPLES=ON'
cmake --build build

For the complete model-description YAML format, see nn_model_description.yaml.

Beta features

The beta namespace is a staging area for experimental DepthAI features. It allows new features to be developed and iterated on quickly before they are promoted to the main depthai namespace.

The API and behavior of beta features can change between releases without notice.

In C++, beta nodes are available under dai::beta::node:

auto node = pipeline.create<dai::beta::node::ClassificationParser>();

In Python, they are available under dai.beta.node:

node = pipeline.create(dai.beta.node.ClassificationParser)

On-device execution of Beta nodes is supported only on RVC4. If running Beta nodes on RVC2, DepthAI automatically configures beta nodes to run on the host.

Multi-device pipelines

Add multiple devices to a single pipeline by calling addDevice(...). The first device that you add becomes the master (default device): nodes created without an explicit device run on it. For more information, see the multi-device documentation. A code example can be found at multi_device_frame_sync.py.

pipeline = dai.Pipeline(False)                    # no implicit device
devA = pipeline.addDevice("10.0.0.10")            # promoted to master
devB = pipeline.addDevice("10.0.0.11")

camA = pipeline.create(dai.node.Camera).build(dai.CameraBoardSocket.CAM_A)          # master
camB = pipeline.create(dai.node.Camera, device=devB).build(dai.CameraBoardSocket.CAM_A)

sync = pipeline.create(dai.node.Sync)             # host Sync aligns both streams
sync.setRunOnHost(True)
camA.requestOutput((640, 400)).link(sync.inputs["a"])
camB.requestOutput((640, 400)).link(sync.inputs["b"])

Running on the device (standalone)

The pipeline process may itself run on an RVC4 and use the local device over shared memory, with further devices attached over the network:

local = pipeline.addDevice(dai.DeviceInfo.local())   # this RVC4, no search timeout
remote = pipeline.addDevice("10.0.0.11")             # a remote device over TCP

Requirements: outbound TCP to each remote device’s gate (port 11492) and XLink ports, and /tmp shared with the device runtime for the local socket. Note that DEPTHAI_PROTOCOL and DEPTHAI_DEVICE_ID_LIST are process-wide discovery filters - leave them unset (any) when mixing local and remote devices.

Dependencies

  • CMake >= 3.20
  • C/C++17 compiler
  • [Linux] libudev >= 1.0.0
  • Docker engine on an x86-64 host with bash, to build the RVC4 firmware (see Building the FW to skip it)
  • [optional] OpenCV 4 (required if building examples and for record and replay)
  • [optional] PCL (required for point cloud example)

To install them:

  • libudev (Debian, Ubuntu): sudo apt install libudev-dev
  • OpenCV: brew install opencv (macOS), sudo apt install libopencv-dev (Linux), choco install opencv (Windows)
  • PCL: brew install pcl (macOS), sudo apt install libpcl-dev (Linux)

File truncated at 100 lines see the full file

Repo symbol

depthai repository

depthai

ROS Distro
noetic

Repository Summary

Description
Checkout URI https://github.com/luxonis/depthai-core.git
VCS Type git
VCS Version ros-release
Last Updated 2026-11-02
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
depthai 2.33.0

README

DepthAI C++ Library

Forum Docs License: MIT

Core C++ library

Important — You’re viewing the v2.x.y branch.

  • For the latest version with support for RVC4 devices, please switch to the main branch.

Documentation

Documentation is available over at Luxonis DepthAI API

Disclaimer

DepthAI library doesn’t yet provide API stability guarantees. While we take care to properly deprecate old functions, some changes might still be breaking. We expect to provide API stability from version 3.0.0 onwards.

Dependencies

  • CMake >= 3.10
  • C/C++14 compiler
  • [optional] OpenCV 4 (required if building examples)
  • [optional] PCL (required for point cloud example)

To install OpenCV: MacOS: brew install opencv Linux: sudo apt install libopencv-dev

To install PCL: MacOS: brew install pcl Linux: sudo apt install libpcl-dev

ℹ️ On Linux distributions based on RPMs, you need to install perl-core required by OpenSSL dependency.

sudo yum install perl-core

Another option is to disable CURL support by setting DEPTHAI_ENABLE_CURL=OFF when configuring CMake.

cmake -S. -Bbuild -D'DEPTHAI_ENABLE_CURL=OFF'

Building

Make sure submodules are updated

git submodule update --init --recursive

Then configure and build

cmake -S. -Bbuild
cmake --build build

ℹ️ To speed up build times, use cmake --build build --parallel [num CPU cores] (CMake >= 3.12). For older versions use: Linux/macOS: cmake --build build -- -j[num CPU cores], MSVC: cmake --build build -- /MP[num CPU cores]

⚠️ If any CMake commands error with CMake Error: The source directory "" does not exist. replace argument -S with -H

Dynamic library

To build dynamic version of library configure with following option added

cmake -S. -Bbuild -D'BUILD_SHARED_LIBS=ON'
cmake --build build

Android

Android is supported to some extent but not actively pursued nor tested. PRs with any improvements are welcome.

Steps:

  • Install Android NDK (for example via Android Studio).
  • Set the NDK path:
export ANDROID_HOME=$HOME/.local/lib/Android
export PATH=$PATH:$ANDROID_HOME/emulator:$ANDROID_HOME/platform-tools
export NDK=$ANDROID_HOME/ndk/23.1.7779620/ # Check version

  • Ensure a recent version of cmake (apt version is outdated, install snap install cmake –classic)
  • Run cmake, set your ABI and Platform as needed:
cmake -S. -Bbuild -DCMAKE_TOOLCHAIN_FILE=$NDK/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-25
cmake --build build

Running examples

To build the examples configure with following option added

cmake -S. -Bbuild -D'DEPTHAI_BUILD_EXAMPLES=ON'
cmake --build build

File truncated at 100 lines see the full file