Package Summary
| Version | 3.13.0 |
| License | MIT |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
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 (-) |
Package Description
Additional Links
Maintainers
- Aljaž Sebastjan Ahtik
Authors
- Martin Peterlin
DepthAI Library
DepthAI library for interfacing with Luxonis DepthAI hardware. It’s written in C++ and offers Python bindings out of the box.
Important — You’re viewing the
v3.x.ybranch.
- For production projects that still rely on v2, check out the
v2_stablebranch.- Need to migrate? Follow the step-by-step v2 → v3 Porting Guide.
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
Changelog for package depthai
3.13.0 (2026-12-04)
## Features
- [RVC4] Open-source firmware
- The RVC4 firmware source is now public, in [[device/rvc4]{.title-ref}](https://github.com/luxonis/depthai-core/tree/main/device/rvc4). The host library and the firmware of one commit always use the same message definitions
- Build the firmware on an x86-64 host in a public Docker image: [./create_deployment_artifacts.sh rvc4]{.title-ref} in [device/rvc4]{.title-ref}. See the [build instructions](https://github.com/luxonis/depthai-core/blob/main/device/rvc4/README.md#building)
- Run your own build with [DEPTHAI_DEVICE_RVC4_FWP=<path to depthai-device-rvc4-fwp.tar.xz>]{.title-ref}, or embed it in the library with [-D DEPTHAI_DEVICE_RVC4_FWP_PATH=<path>]{.title-ref}. See [Running a custom build](https://github.com/luxonis/depthai-core/blob/main/device/rvc4/README.md#running-a-custom-build-with-depthai-core)
- A source build now also builds the RVC4 firmware. This needs Docker and the acceptance of the firmware licenses ([DEPTHAI_ACCEPT_VENDOR_EULA=yes]{.title-ref}, [DEPTHAI_ACCEPT_QUALCOMM_LICENSE=yes]{.title-ref}). To skip it, set [-D DEPTHAI_DEVICE_RVC4_VERSION=<version>]{.title-ref} (download a released package) or [-D DEPTHAI_ENABLE_DEVICE_RVC4_FW=OFF]{.title-ref}
- [RVC4] *DynamicCalibration and AutoCalibration*
- Both nodes can now run on the device
- New [dai.WorldConstraints]{.title-ref} gives the calibration a metric reference from ArUco or Luxonis markers (marker distances and sizes). Set them with [setWorldConstraints*]{.title-ref} on the node or [Pipeline.setAutoCalibrationWorldConstraints*]{.title-ref}. Examples in [Python](https://github.com/luxonis/depthai-core/blob/main/examples/python/DynamicCalibration/calibration_dynamic_world_constraints.py) and [C++](https://github.com/luxonis/depthai-core/blob/main/examples/cpp/DynamicCalibration/calibration_dynamic_world_constraints.cpp)
- [setThreadPolicy()]{.title-ref} sets the thread count, nice value and CPU affinity of the calibration. On RVC4, the default keeps one fast CPU core free for the other nodes
- Stitching ground plane: in calibrated [PANORAMA]{.title-ref} mode, [setPlane()]{.title-ref} now projects the panorama onto the ground plane, so the ground lines up across cameras that are mounted apart
- [RVC4] NNArchives now accept User Defined Operations (UDO) and apply them to the model at inference time
- [CameraControl.setAutoFocusRegion()]{.title-ref} and [setAutoExposureRegion()]{.title-ref} accept a region in any received frame together with its [ImgTransformation]{.title-ref}, and map it to the sensor
- [ImageAlign.setBackend()]{.title-ref} selects [CPU]{.title-ref}, [GPU]{.title-ref} or [AUTO]{.title-ref}. GPU is available on RVC4
- ImageManip converts GRAY8/RAW8 frames to RGB/BGR (RVC4 and host), for example to send mono frames to a color model
- [RVC4] New [ExternalFrameSyncRole.ISOLATED]{.title-ref} ignores the FSYNC pin so it stays free for M8 external use
- [RVC2] Support for the OG01A1B (mono) and OG01A10 (color) sensors: 1280x1024 at up to 120 FPS, 640x512 (binned) at up to 240 FPS
- New [ToFConfig.enableIntermediateDepth]{.title-ref} (default [True]{.title-ref}) for S5K63D ToF sensors with phase unwrapping. [False]{.title-ref} publishes only the depth of the full four-frame stack
## Bug fixes
-
ImageAlign and Align node
- Aligned depth is now the Z distance in the target camera. Before, the depth was wrong when the cameras were rotated or at different positions along Z
- Holes stay holes, and depth values that are out of range are removed
- [RVC2] ImageAlign no longer sends a black first frame, and Warp no longer sends invalid frames
-
ImageManip
- The valid image region ([ImgTransformation]{.title-ref}) is now correct for crops of scaled frames
- A colormap on GRAY8/RAW8 frames no longer crashes. The colormap output is now RGB, as the frame type says (before: BGR)
-
Camera
- Intrinsics are now correct for sensor modes that crop or bin the sensor (for example RVC2 4K and OAK-D Lite binned modes). On RVC4, also after runtime calibration updates
- [RVC4] [getSensorTemperature()]{.title-ref} now gives degrees Celsius for all sensors, and no value when the sensor has no reading
- [RVC4] Above 121 FPS, all frames now report exposure, ISO, lens position and color temperature, and the timestamps have even steps. Before, 3 of 4 frames reported exposure 0
- [RVC2] Cameras no longer stay overexposed after many [readCalibration()]{.title-ref} calls
-
[RVC4] VideoEncoder H.264/H.265
- The encoder no longer freezes on noisy keyframes (for example a dark scene with high gain at 4000x3000)
- Frames from the host now get the full bitrate. Timestamps that go back no longer stop the output
- [RVC4] NeuralNetwork: a model that the selected runtime cannot build now makes [pipeline.start()]{.title-ref} throw an error. Before, the firmware crashed
File truncated at 100 lines see the full file
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged depthai at Robotics Stack Exchange
Package Summary
| Version | 3.13.0 |
| License | MIT |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
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 (-) |
Package Description
Additional Links
Maintainers
- Aljaž Sebastjan Ahtik
Authors
- Martin Peterlin
DepthAI Library
DepthAI library for interfacing with Luxonis DepthAI hardware. It’s written in C++ and offers Python bindings out of the box.
Important — You’re viewing the
v3.x.ybranch.
- For production projects that still rely on v2, check out the
v2_stablebranch.- Need to migrate? Follow the step-by-step v2 → v3 Porting Guide.
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
Changelog for package depthai
3.13.0 (2026-12-04)
## Features
- [RVC4] Open-source firmware
- The RVC4 firmware source is now public, in [[device/rvc4]{.title-ref}](https://github.com/luxonis/depthai-core/tree/main/device/rvc4). The host library and the firmware of one commit always use the same message definitions
- Build the firmware on an x86-64 host in a public Docker image: [./create_deployment_artifacts.sh rvc4]{.title-ref} in [device/rvc4]{.title-ref}. See the [build instructions](https://github.com/luxonis/depthai-core/blob/main/device/rvc4/README.md#building)
- Run your own build with [DEPTHAI_DEVICE_RVC4_FWP=<path to depthai-device-rvc4-fwp.tar.xz>]{.title-ref}, or embed it in the library with [-D DEPTHAI_DEVICE_RVC4_FWP_PATH=<path>]{.title-ref}. See [Running a custom build](https://github.com/luxonis/depthai-core/blob/main/device/rvc4/README.md#running-a-custom-build-with-depthai-core)
- A source build now also builds the RVC4 firmware. This needs Docker and the acceptance of the firmware licenses ([DEPTHAI_ACCEPT_VENDOR_EULA=yes]{.title-ref}, [DEPTHAI_ACCEPT_QUALCOMM_LICENSE=yes]{.title-ref}). To skip it, set [-D DEPTHAI_DEVICE_RVC4_VERSION=<version>]{.title-ref} (download a released package) or [-D DEPTHAI_ENABLE_DEVICE_RVC4_FW=OFF]{.title-ref}
- [RVC4] *DynamicCalibration and AutoCalibration*
- Both nodes can now run on the device
- New [dai.WorldConstraints]{.title-ref} gives the calibration a metric reference from ArUco or Luxonis markers (marker distances and sizes). Set them with [setWorldConstraints*]{.title-ref} on the node or [Pipeline.setAutoCalibrationWorldConstraints*]{.title-ref}. Examples in [Python](https://github.com/luxonis/depthai-core/blob/main/examples/python/DynamicCalibration/calibration_dynamic_world_constraints.py) and [C++](https://github.com/luxonis/depthai-core/blob/main/examples/cpp/DynamicCalibration/calibration_dynamic_world_constraints.cpp)
- [setThreadPolicy()]{.title-ref} sets the thread count, nice value and CPU affinity of the calibration. On RVC4, the default keeps one fast CPU core free for the other nodes
- Stitching ground plane: in calibrated [PANORAMA]{.title-ref} mode, [setPlane()]{.title-ref} now projects the panorama onto the ground plane, so the ground lines up across cameras that are mounted apart
- [RVC4] NNArchives now accept User Defined Operations (UDO) and apply them to the model at inference time
- [CameraControl.setAutoFocusRegion()]{.title-ref} and [setAutoExposureRegion()]{.title-ref} accept a region in any received frame together with its [ImgTransformation]{.title-ref}, and map it to the sensor
- [ImageAlign.setBackend()]{.title-ref} selects [CPU]{.title-ref}, [GPU]{.title-ref} or [AUTO]{.title-ref}. GPU is available on RVC4
- ImageManip converts GRAY8/RAW8 frames to RGB/BGR (RVC4 and host), for example to send mono frames to a color model
- [RVC4] New [ExternalFrameSyncRole.ISOLATED]{.title-ref} ignores the FSYNC pin so it stays free for M8 external use
- [RVC2] Support for the OG01A1B (mono) and OG01A10 (color) sensors: 1280x1024 at up to 120 FPS, 640x512 (binned) at up to 240 FPS
- New [ToFConfig.enableIntermediateDepth]{.title-ref} (default [True]{.title-ref}) for S5K63D ToF sensors with phase unwrapping. [False]{.title-ref} publishes only the depth of the full four-frame stack
## Bug fixes
-
ImageAlign and Align node
- Aligned depth is now the Z distance in the target camera. Before, the depth was wrong when the cameras were rotated or at different positions along Z
- Holes stay holes, and depth values that are out of range are removed
- [RVC2] ImageAlign no longer sends a black first frame, and Warp no longer sends invalid frames
-
ImageManip
- The valid image region ([ImgTransformation]{.title-ref}) is now correct for crops of scaled frames
- A colormap on GRAY8/RAW8 frames no longer crashes. The colormap output is now RGB, as the frame type says (before: BGR)
-
Camera
- Intrinsics are now correct for sensor modes that crop or bin the sensor (for example RVC2 4K and OAK-D Lite binned modes). On RVC4, also after runtime calibration updates
- [RVC4] [getSensorTemperature()]{.title-ref} now gives degrees Celsius for all sensors, and no value when the sensor has no reading
- [RVC4] Above 121 FPS, all frames now report exposure, ISO, lens position and color temperature, and the timestamps have even steps. Before, 3 of 4 frames reported exposure 0
- [RVC2] Cameras no longer stay overexposed after many [readCalibration()]{.title-ref} calls
-
[RVC4] VideoEncoder H.264/H.265
- The encoder no longer freezes on noisy keyframes (for example a dark scene with high gain at 4000x3000)
- Frames from the host now get the full bitrate. Timestamps that go back no longer stop the output
- [RVC4] NeuralNetwork: a model that the selected runtime cannot build now makes [pipeline.start()]{.title-ref} throw an error. Before, the firmware crashed
File truncated at 100 lines see the full file
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged depthai at Robotics Stack Exchange
Package Summary
| Version | 3.13.0 |
| License | MIT |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
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 (-) |
Package Description
Additional Links
Maintainers
- Aljaž Sebastjan Ahtik
Authors
- Martin Peterlin
DepthAI Library
DepthAI library for interfacing with Luxonis DepthAI hardware. It’s written in C++ and offers Python bindings out of the box.
Important — You’re viewing the
v3.x.ybranch.
- For production projects that still rely on v2, check out the
v2_stablebranch.- Need to migrate? Follow the step-by-step v2 → v3 Porting Guide.
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
Changelog for package depthai
3.13.0 (2026-12-04)
## Features
- [RVC4] Open-source firmware
- The RVC4 firmware source is now public, in [[device/rvc4]{.title-ref}](https://github.com/luxonis/depthai-core/tree/main/device/rvc4). The host library and the firmware of one commit always use the same message definitions
- Build the firmware on an x86-64 host in a public Docker image: [./create_deployment_artifacts.sh rvc4]{.title-ref} in [device/rvc4]{.title-ref}. See the [build instructions](https://github.com/luxonis/depthai-core/blob/main/device/rvc4/README.md#building)
- Run your own build with [DEPTHAI_DEVICE_RVC4_FWP=<path to depthai-device-rvc4-fwp.tar.xz>]{.title-ref}, or embed it in the library with [-D DEPTHAI_DEVICE_RVC4_FWP_PATH=<path>]{.title-ref}. See [Running a custom build](https://github.com/luxonis/depthai-core/blob/main/device/rvc4/README.md#running-a-custom-build-with-depthai-core)
- A source build now also builds the RVC4 firmware. This needs Docker and the acceptance of the firmware licenses ([DEPTHAI_ACCEPT_VENDOR_EULA=yes]{.title-ref}, [DEPTHAI_ACCEPT_QUALCOMM_LICENSE=yes]{.title-ref}). To skip it, set [-D DEPTHAI_DEVICE_RVC4_VERSION=<version>]{.title-ref} (download a released package) or [-D DEPTHAI_ENABLE_DEVICE_RVC4_FW=OFF]{.title-ref}
- [RVC4] *DynamicCalibration and AutoCalibration*
- Both nodes can now run on the device
- New [dai.WorldConstraints]{.title-ref} gives the calibration a metric reference from ArUco or Luxonis markers (marker distances and sizes). Set them with [setWorldConstraints*]{.title-ref} on the node or [Pipeline.setAutoCalibrationWorldConstraints*]{.title-ref}. Examples in [Python](https://github.com/luxonis/depthai-core/blob/main/examples/python/DynamicCalibration/calibration_dynamic_world_constraints.py) and [C++](https://github.com/luxonis/depthai-core/blob/main/examples/cpp/DynamicCalibration/calibration_dynamic_world_constraints.cpp)
- [setThreadPolicy()]{.title-ref} sets the thread count, nice value and CPU affinity of the calibration. On RVC4, the default keeps one fast CPU core free for the other nodes
- Stitching ground plane: in calibrated [PANORAMA]{.title-ref} mode, [setPlane()]{.title-ref} now projects the panorama onto the ground plane, so the ground lines up across cameras that are mounted apart
- [RVC4] NNArchives now accept User Defined Operations (UDO) and apply them to the model at inference time
- [CameraControl.setAutoFocusRegion()]{.title-ref} and [setAutoExposureRegion()]{.title-ref} accept a region in any received frame together with its [ImgTransformation]{.title-ref}, and map it to the sensor
- [ImageAlign.setBackend()]{.title-ref} selects [CPU]{.title-ref}, [GPU]{.title-ref} or [AUTO]{.title-ref}. GPU is available on RVC4
- ImageManip converts GRAY8/RAW8 frames to RGB/BGR (RVC4 and host), for example to send mono frames to a color model
- [RVC4] New [ExternalFrameSyncRole.ISOLATED]{.title-ref} ignores the FSYNC pin so it stays free for M8 external use
- [RVC2] Support for the OG01A1B (mono) and OG01A10 (color) sensors: 1280x1024 at up to 120 FPS, 640x512 (binned) at up to 240 FPS
- New [ToFConfig.enableIntermediateDepth]{.title-ref} (default [True]{.title-ref}) for S5K63D ToF sensors with phase unwrapping. [False]{.title-ref} publishes only the depth of the full four-frame stack
## Bug fixes
-
ImageAlign and Align node
- Aligned depth is now the Z distance in the target camera. Before, the depth was wrong when the cameras were rotated or at different positions along Z
- Holes stay holes, and depth values that are out of range are removed
- [RVC2] ImageAlign no longer sends a black first frame, and Warp no longer sends invalid frames
-
ImageManip
- The valid image region ([ImgTransformation]{.title-ref}) is now correct for crops of scaled frames
- A colormap on GRAY8/RAW8 frames no longer crashes. The colormap output is now RGB, as the frame type says (before: BGR)
-
Camera
- Intrinsics are now correct for sensor modes that crop or bin the sensor (for example RVC2 4K and OAK-D Lite binned modes). On RVC4, also after runtime calibration updates
- [RVC4] [getSensorTemperature()]{.title-ref} now gives degrees Celsius for all sensors, and no value when the sensor has no reading
- [RVC4] Above 121 FPS, all frames now report exposure, ISO, lens position and color temperature, and the timestamps have even steps. Before, 3 of 4 frames reported exposure 0
- [RVC2] Cameras no longer stay overexposed after many [readCalibration()]{.title-ref} calls
-
[RVC4] VideoEncoder H.264/H.265
- The encoder no longer freezes on noisy keyframes (for example a dark scene with high gain at 4000x3000)
- Frames from the host now get the full bitrate. Timestamps that go back no longer stop the output
- [RVC4] NeuralNetwork: a model that the selected runtime cannot build now makes [pipeline.start()]{.title-ref} throw an error. Before, the firmware crashed
File truncated at 100 lines see the full file
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged depthai at Robotics Stack Exchange
Package Summary
| Version | 3.13.0 |
| License | MIT |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
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 (-) |
Package Description
Additional Links
Maintainers
- Aljaž Sebastjan Ahtik
Authors
- Martin Peterlin
DepthAI Library
DepthAI library for interfacing with Luxonis DepthAI hardware. It’s written in C++ and offers Python bindings out of the box.
Important — You’re viewing the
v3.x.ybranch.
- For production projects that still rely on v2, check out the
v2_stablebranch.- Need to migrate? Follow the step-by-step v2 → v3 Porting Guide.
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
Changelog for package depthai
3.13.0 (2026-12-04)
## Features
- [RVC4] Open-source firmware
- The RVC4 firmware source is now public, in [[device/rvc4]{.title-ref}](https://github.com/luxonis/depthai-core/tree/main/device/rvc4). The host library and the firmware of one commit always use the same message definitions
- Build the firmware on an x86-64 host in a public Docker image: [./create_deployment_artifacts.sh rvc4]{.title-ref} in [device/rvc4]{.title-ref}. See the [build instructions](https://github.com/luxonis/depthai-core/blob/main/device/rvc4/README.md#building)
- Run your own build with [DEPTHAI_DEVICE_RVC4_FWP=<path to depthai-device-rvc4-fwp.tar.xz>]{.title-ref}, or embed it in the library with [-D DEPTHAI_DEVICE_RVC4_FWP_PATH=<path>]{.title-ref}. See [Running a custom build](https://github.com/luxonis/depthai-core/blob/main/device/rvc4/README.md#running-a-custom-build-with-depthai-core)
- A source build now also builds the RVC4 firmware. This needs Docker and the acceptance of the firmware licenses ([DEPTHAI_ACCEPT_VENDOR_EULA=yes]{.title-ref}, [DEPTHAI_ACCEPT_QUALCOMM_LICENSE=yes]{.title-ref}). To skip it, set [-D DEPTHAI_DEVICE_RVC4_VERSION=<version>]{.title-ref} (download a released package) or [-D DEPTHAI_ENABLE_DEVICE_RVC4_FW=OFF]{.title-ref}
- [RVC4] *DynamicCalibration and AutoCalibration*
- Both nodes can now run on the device
- New [dai.WorldConstraints]{.title-ref} gives the calibration a metric reference from ArUco or Luxonis markers (marker distances and sizes). Set them with [setWorldConstraints*]{.title-ref} on the node or [Pipeline.setAutoCalibrationWorldConstraints*]{.title-ref}. Examples in [Python](https://github.com/luxonis/depthai-core/blob/main/examples/python/DynamicCalibration/calibration_dynamic_world_constraints.py) and [C++](https://github.com/luxonis/depthai-core/blob/main/examples/cpp/DynamicCalibration/calibration_dynamic_world_constraints.cpp)
- [setThreadPolicy()]{.title-ref} sets the thread count, nice value and CPU affinity of the calibration. On RVC4, the default keeps one fast CPU core free for the other nodes
- Stitching ground plane: in calibrated [PANORAMA]{.title-ref} mode, [setPlane()]{.title-ref} now projects the panorama onto the ground plane, so the ground lines up across cameras that are mounted apart
- [RVC4] NNArchives now accept User Defined Operations (UDO) and apply them to the model at inference time
- [CameraControl.setAutoFocusRegion()]{.title-ref} and [setAutoExposureRegion()]{.title-ref} accept a region in any received frame together with its [ImgTransformation]{.title-ref}, and map it to the sensor
- [ImageAlign.setBackend()]{.title-ref} selects [CPU]{.title-ref}, [GPU]{.title-ref} or [AUTO]{.title-ref}. GPU is available on RVC4
- ImageManip converts GRAY8/RAW8 frames to RGB/BGR (RVC4 and host), for example to send mono frames to a color model
- [RVC4] New [ExternalFrameSyncRole.ISOLATED]{.title-ref} ignores the FSYNC pin so it stays free for M8 external use
- [RVC2] Support for the OG01A1B (mono) and OG01A10 (color) sensors: 1280x1024 at up to 120 FPS, 640x512 (binned) at up to 240 FPS
- New [ToFConfig.enableIntermediateDepth]{.title-ref} (default [True]{.title-ref}) for S5K63D ToF sensors with phase unwrapping. [False]{.title-ref} publishes only the depth of the full four-frame stack
## Bug fixes
-
ImageAlign and Align node
- Aligned depth is now the Z distance in the target camera. Before, the depth was wrong when the cameras were rotated or at different positions along Z
- Holes stay holes, and depth values that are out of range are removed
- [RVC2] ImageAlign no longer sends a black first frame, and Warp no longer sends invalid frames
-
ImageManip
- The valid image region ([ImgTransformation]{.title-ref}) is now correct for crops of scaled frames
- A colormap on GRAY8/RAW8 frames no longer crashes. The colormap output is now RGB, as the frame type says (before: BGR)
-
Camera
- Intrinsics are now correct for sensor modes that crop or bin the sensor (for example RVC2 4K and OAK-D Lite binned modes). On RVC4, also after runtime calibration updates
- [RVC4] [getSensorTemperature()]{.title-ref} now gives degrees Celsius for all sensors, and no value when the sensor has no reading
- [RVC4] Above 121 FPS, all frames now report exposure, ISO, lens position and color temperature, and the timestamps have even steps. Before, 3 of 4 frames reported exposure 0
- [RVC2] Cameras no longer stay overexposed after many [readCalibration()]{.title-ref} calls
-
[RVC4] VideoEncoder H.264/H.265
- The encoder no longer freezes on noisy keyframes (for example a dark scene with high gain at 4000x3000)
- Frames from the host now get the full bitrate. Timestamps that go back no longer stop the output
- [RVC4] NeuralNetwork: a model that the selected runtime cannot build now makes [pipeline.start()]{.title-ref} throw an error. Before, the firmware crashed
File truncated at 100 lines see the full file
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged depthai at Robotics Stack Exchange
Package Summary
| Version | 3.13.0 |
| License | MIT |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
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 (-) |
Package Description
Additional Links
Maintainers
- Aljaž Sebastjan Ahtik
Authors
- Martin Peterlin
DepthAI Library
DepthAI library for interfacing with Luxonis DepthAI hardware. It’s written in C++ and offers Python bindings out of the box.
Important — You’re viewing the
v3.x.ybranch.
- For production projects that still rely on v2, check out the
v2_stablebranch.- Need to migrate? Follow the step-by-step v2 → v3 Porting Guide.
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
Changelog for package depthai
3.13.0 (2026-12-04)
## Features
- [RVC4] Open-source firmware
- The RVC4 firmware source is now public, in [[device/rvc4]{.title-ref}](https://github.com/luxonis/depthai-core/tree/main/device/rvc4). The host library and the firmware of one commit always use the same message definitions
- Build the firmware on an x86-64 host in a public Docker image: [./create_deployment_artifacts.sh rvc4]{.title-ref} in [device/rvc4]{.title-ref}. See the [build instructions](https://github.com/luxonis/depthai-core/blob/main/device/rvc4/README.md#building)
- Run your own build with [DEPTHAI_DEVICE_RVC4_FWP=<path to depthai-device-rvc4-fwp.tar.xz>]{.title-ref}, or embed it in the library with [-D DEPTHAI_DEVICE_RVC4_FWP_PATH=<path>]{.title-ref}. See [Running a custom build](https://github.com/luxonis/depthai-core/blob/main/device/rvc4/README.md#running-a-custom-build-with-depthai-core)
- A source build now also builds the RVC4 firmware. This needs Docker and the acceptance of the firmware licenses ([DEPTHAI_ACCEPT_VENDOR_EULA=yes]{.title-ref}, [DEPTHAI_ACCEPT_QUALCOMM_LICENSE=yes]{.title-ref}). To skip it, set [-D DEPTHAI_DEVICE_RVC4_VERSION=<version>]{.title-ref} (download a released package) or [-D DEPTHAI_ENABLE_DEVICE_RVC4_FW=OFF]{.title-ref}
- [RVC4] *DynamicCalibration and AutoCalibration*
- Both nodes can now run on the device
- New [dai.WorldConstraints]{.title-ref} gives the calibration a metric reference from ArUco or Luxonis markers (marker distances and sizes). Set them with [setWorldConstraints*]{.title-ref} on the node or [Pipeline.setAutoCalibrationWorldConstraints*]{.title-ref}. Examples in [Python](https://github.com/luxonis/depthai-core/blob/main/examples/python/DynamicCalibration/calibration_dynamic_world_constraints.py) and [C++](https://github.com/luxonis/depthai-core/blob/main/examples/cpp/DynamicCalibration/calibration_dynamic_world_constraints.cpp)
- [setThreadPolicy()]{.title-ref} sets the thread count, nice value and CPU affinity of the calibration. On RVC4, the default keeps one fast CPU core free for the other nodes
- Stitching ground plane: in calibrated [PANORAMA]{.title-ref} mode, [setPlane()]{.title-ref} now projects the panorama onto the ground plane, so the ground lines up across cameras that are mounted apart
- [RVC4] NNArchives now accept User Defined Operations (UDO) and apply them to the model at inference time
- [CameraControl.setAutoFocusRegion()]{.title-ref} and [setAutoExposureRegion()]{.title-ref} accept a region in any received frame together with its [ImgTransformation]{.title-ref}, and map it to the sensor
- [ImageAlign.setBackend()]{.title-ref} selects [CPU]{.title-ref}, [GPU]{.title-ref} or [AUTO]{.title-ref}. GPU is available on RVC4
- ImageManip converts GRAY8/RAW8 frames to RGB/BGR (RVC4 and host), for example to send mono frames to a color model
- [RVC4] New [ExternalFrameSyncRole.ISOLATED]{.title-ref} ignores the FSYNC pin so it stays free for M8 external use
- [RVC2] Support for the OG01A1B (mono) and OG01A10 (color) sensors: 1280x1024 at up to 120 FPS, 640x512 (binned) at up to 240 FPS
- New [ToFConfig.enableIntermediateDepth]{.title-ref} (default [True]{.title-ref}) for S5K63D ToF sensors with phase unwrapping. [False]{.title-ref} publishes only the depth of the full four-frame stack
## Bug fixes
-
ImageAlign and Align node
- Aligned depth is now the Z distance in the target camera. Before, the depth was wrong when the cameras were rotated or at different positions along Z
- Holes stay holes, and depth values that are out of range are removed
- [RVC2] ImageAlign no longer sends a black first frame, and Warp no longer sends invalid frames
-
ImageManip
- The valid image region ([ImgTransformation]{.title-ref}) is now correct for crops of scaled frames
- A colormap on GRAY8/RAW8 frames no longer crashes. The colormap output is now RGB, as the frame type says (before: BGR)
-
Camera
- Intrinsics are now correct for sensor modes that crop or bin the sensor (for example RVC2 4K and OAK-D Lite binned modes). On RVC4, also after runtime calibration updates
- [RVC4] [getSensorTemperature()]{.title-ref} now gives degrees Celsius for all sensors, and no value when the sensor has no reading
- [RVC4] Above 121 FPS, all frames now report exposure, ISO, lens position and color temperature, and the timestamps have even steps. Before, 3 of 4 frames reported exposure 0
- [RVC2] Cameras no longer stay overexposed after many [readCalibration()]{.title-ref} calls
-
[RVC4] VideoEncoder H.264/H.265
- The encoder no longer freezes on noisy keyframes (for example a dark scene with high gain at 4000x3000)
- Frames from the host now get the full bitrate. Timestamps that go back no longer stop the output
- [RVC4] NeuralNetwork: a model that the selected runtime cannot build now makes [pipeline.start()]{.title-ref} throw an error. Before, the firmware crashed
File truncated at 100 lines see the full file
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged depthai at Robotics Stack Exchange
Package Summary
| Version | 3.13.0 |
| License | MIT |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
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 (-) |
Package Description
Additional Links
Maintainers
- Aljaž Sebastjan Ahtik
Authors
- Martin Peterlin
DepthAI Library
DepthAI library for interfacing with Luxonis DepthAI hardware. It’s written in C++ and offers Python bindings out of the box.
Important — You’re viewing the
v3.x.ybranch.
- For production projects that still rely on v2, check out the
v2_stablebranch.- Need to migrate? Follow the step-by-step v2 → v3 Porting Guide.
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
Changelog for package depthai
3.13.0 (2026-12-04)
## Features
- [RVC4] Open-source firmware
- The RVC4 firmware source is now public, in [[device/rvc4]{.title-ref}](https://github.com/luxonis/depthai-core/tree/main/device/rvc4). The host library and the firmware of one commit always use the same message definitions
- Build the firmware on an x86-64 host in a public Docker image: [./create_deployment_artifacts.sh rvc4]{.title-ref} in [device/rvc4]{.title-ref}. See the [build instructions](https://github.com/luxonis/depthai-core/blob/main/device/rvc4/README.md#building)
- Run your own build with [DEPTHAI_DEVICE_RVC4_FWP=<path to depthai-device-rvc4-fwp.tar.xz>]{.title-ref}, or embed it in the library with [-D DEPTHAI_DEVICE_RVC4_FWP_PATH=<path>]{.title-ref}. See [Running a custom build](https://github.com/luxonis/depthai-core/blob/main/device/rvc4/README.md#running-a-custom-build-with-depthai-core)
- A source build now also builds the RVC4 firmware. This needs Docker and the acceptance of the firmware licenses ([DEPTHAI_ACCEPT_VENDOR_EULA=yes]{.title-ref}, [DEPTHAI_ACCEPT_QUALCOMM_LICENSE=yes]{.title-ref}). To skip it, set [-D DEPTHAI_DEVICE_RVC4_VERSION=<version>]{.title-ref} (download a released package) or [-D DEPTHAI_ENABLE_DEVICE_RVC4_FW=OFF]{.title-ref}
- [RVC4] *DynamicCalibration and AutoCalibration*
- Both nodes can now run on the device
- New [dai.WorldConstraints]{.title-ref} gives the calibration a metric reference from ArUco or Luxonis markers (marker distances and sizes). Set them with [setWorldConstraints*]{.title-ref} on the node or [Pipeline.setAutoCalibrationWorldConstraints*]{.title-ref}. Examples in [Python](https://github.com/luxonis/depthai-core/blob/main/examples/python/DynamicCalibration/calibration_dynamic_world_constraints.py) and [C++](https://github.com/luxonis/depthai-core/blob/main/examples/cpp/DynamicCalibration/calibration_dynamic_world_constraints.cpp)
- [setThreadPolicy()]{.title-ref} sets the thread count, nice value and CPU affinity of the calibration. On RVC4, the default keeps one fast CPU core free for the other nodes
- Stitching ground plane: in calibrated [PANORAMA]{.title-ref} mode, [setPlane()]{.title-ref} now projects the panorama onto the ground plane, so the ground lines up across cameras that are mounted apart
- [RVC4] NNArchives now accept User Defined Operations (UDO) and apply them to the model at inference time
- [CameraControl.setAutoFocusRegion()]{.title-ref} and [setAutoExposureRegion()]{.title-ref} accept a region in any received frame together with its [ImgTransformation]{.title-ref}, and map it to the sensor
- [ImageAlign.setBackend()]{.title-ref} selects [CPU]{.title-ref}, [GPU]{.title-ref} or [AUTO]{.title-ref}. GPU is available on RVC4
- ImageManip converts GRAY8/RAW8 frames to RGB/BGR (RVC4 and host), for example to send mono frames to a color model
- [RVC4] New [ExternalFrameSyncRole.ISOLATED]{.title-ref} ignores the FSYNC pin so it stays free for M8 external use
- [RVC2] Support for the OG01A1B (mono) and OG01A10 (color) sensors: 1280x1024 at up to 120 FPS, 640x512 (binned) at up to 240 FPS
- New [ToFConfig.enableIntermediateDepth]{.title-ref} (default [True]{.title-ref}) for S5K63D ToF sensors with phase unwrapping. [False]{.title-ref} publishes only the depth of the full four-frame stack
## Bug fixes
-
ImageAlign and Align node
- Aligned depth is now the Z distance in the target camera. Before, the depth was wrong when the cameras were rotated or at different positions along Z
- Holes stay holes, and depth values that are out of range are removed
- [RVC2] ImageAlign no longer sends a black first frame, and Warp no longer sends invalid frames
-
ImageManip
- The valid image region ([ImgTransformation]{.title-ref}) is now correct for crops of scaled frames
- A colormap on GRAY8/RAW8 frames no longer crashes. The colormap output is now RGB, as the frame type says (before: BGR)
-
Camera
- Intrinsics are now correct for sensor modes that crop or bin the sensor (for example RVC2 4K and OAK-D Lite binned modes). On RVC4, also after runtime calibration updates
- [RVC4] [getSensorTemperature()]{.title-ref} now gives degrees Celsius for all sensors, and no value when the sensor has no reading
- [RVC4] Above 121 FPS, all frames now report exposure, ISO, lens position and color temperature, and the timestamps have even steps. Before, 3 of 4 frames reported exposure 0
- [RVC2] Cameras no longer stay overexposed after many [readCalibration()]{.title-ref} calls
-
[RVC4] VideoEncoder H.264/H.265
- The encoder no longer freezes on noisy keyframes (for example a dark scene with high gain at 4000x3000)
- Frames from the host now get the full bitrate. Timestamps that go back no longer stop the output
- [RVC4] NeuralNetwork: a model that the selected runtime cannot build now makes [pipeline.start()]{.title-ref} throw an error. Before, the firmware crashed
File truncated at 100 lines see the full file
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged depthai at Robotics Stack Exchange
Package Summary
| Version | 2.33.0 |
| License | MIT |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
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 (-) |
Package Description
Additional Links
Maintainers
- Aljaž Sebastjan Ahtik
Authors
- Martin Peterlin
DepthAI C++ Library
Core C++ library
Important — You’re viewing the
v2.x.ybranch.
- For the latest version with support for RVC4 devices, please switch to the
mainbranch.
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-corerequired by OpenSSL dependency.sudo yum install perl-coreAnother option is to disable CURL support by setting
DEPTHAI_ENABLE_CURL=OFFwhen 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-Swith-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
Changelog for package depthai
2.33.0 (2026-11-02)
## Features * Add a [device.getState`function, which returns the firmware state of the device in runtime * Add `setProcessor]{.title-ref} function to select the processor for [Sync]{.title-ref} and [Demux]{.title-ref} nodes
## Misc * Expand crashdump data in firmware with more context on what caused the crash * Namespace installation
2.31.1 (2026-01-23)
- Minor bugfixes
2.31.0 (2025-12-03)
## Features * Add tuning for the IMX577 sensor, removing the previously present blue tint * Improve IMX678 support on RVC2 with better black level correction, improving brightness and color accuracy
## New devices support * Add support for a new revision of OAK-Thermal (R8) * Add support for OAK-ToF (R4) * Add support for a new revision of OAK-D-S2-[Pro]-Wide OV9728 variant (R8)
## Bug fixes and stability * Fix a rare issue of IMU preventing a device reboot * Fix a timestamp overflow bug on the BNO08x IMU * Fix an edge case where [dai.Device]{.title-ref} constructor could get stuck indefinitely if the device lost connection at the wrong time by adding a timeout internally * Turn on the watchdog early during discovery of RVC2 USB devices to avoid soft bricking the device along with handling the case where the device gets into that state to recover it on the next boot * Fully disable crashdump extraction when [DEPTHAI_CRASHDUMP=0]{.title-ref} is set
## Misc * Add support to explicitly remove tracklets in [ObjectTracker]{.title-ref} node * Remove limitation for the maximum watchdog frequency from 4.5 seconds to unlimited ("infinity") by adding a software watchdog in firmware
2.30.0 (2025-03-18)
- Features
- Add RVC4 discovery to point users to v3 version of the library for OAK4 devices
- Add support for a new VCM enabling autofocus on new IMX378 CCMs
- Bug fixes
- Fix an edge case in ImageManip to make https://github.com/geaxgx/depthai_hand_tracker run in edge mode again
- Fix an edge case when sending MessageGroup from host to device and using more than 4 messages
2.29.0 (2024-11-26)
-
Features
-
Add the ability to change the calibration on the device in runtime with the new [dai::Device.setCalibration()]{.title-ref} method and to retrieve it with the [dai::Device.getCalibration()]{.title-ref}.
-
- New [StereoDepth]{.title-ref} presets:
-
- [DEFAULT]{.title-ref}
- [FACE]{.title-ref}
- [HIGH_DETAIL]{.title-ref}
- [ROBOTICS]{.title-ref}
-
- Multiple camera improvements (more details in https://github.com/luxonis/depthai-core/pull/972):
-
- Expose more downsampling modes when picking a lower than native resolutions
- Expose more binning modes when binning is picked on IMX582/586 ([sum]{.title-ref} and [avg]{.title-ref})
- HDR on IMX582/586
- Option to bypass 3A for having manual expose/ISO take effect faster
- Initial support for new Sony 4K Starvis sensors: IMX678 and IMX715
- Option to set the main camera to drive auto-exposure and auto-white-balance in multi-camera configurations
-
- Improved StereoDepth filtering and an option to use a set a custom order of filters
-
- Disparity is first scaled to 13 bit before going through filtering, which results in filters being more effective.
-
Misc
-
Remove false reports on crashes that happened on device destruction
- Add [getWidth()]{.title-ref} and [getHeight()]{.title-ref} API to [EncodedFrame]{.title-ref}
File truncated at 100 lines see the full file
Dependant Packages
| Name | Deps |
|---|---|
| depthai-ros | |
| depthai_bridge | |
| depthai_examples |
Launch files
Messages
Services
Plugins
Recent questions tagged depthai at Robotics Stack Exchange
Package Summary
| Version | 2.33.0 |
| License | MIT |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
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 (-) |
Package Description
Additional Links
Maintainers
- Aljaž Sebastjan Ahtik
Authors
- Martin Peterlin
DepthAI C++ Library
Core C++ library
Important — You’re viewing the
v2.x.ybranch.
- For the latest version with support for RVC4 devices, please switch to the
mainbranch.
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-corerequired by OpenSSL dependency.sudo yum install perl-coreAnother option is to disable CURL support by setting
DEPTHAI_ENABLE_CURL=OFFwhen 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-Swith-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
Changelog for package depthai
2.33.0 (2026-11-02)
## Features * Add a [device.getState`function, which returns the firmware state of the device in runtime * Add `setProcessor]{.title-ref} function to select the processor for [Sync]{.title-ref} and [Demux]{.title-ref} nodes
## Misc * Expand crashdump data in firmware with more context on what caused the crash * Namespace installation
2.31.1 (2026-01-23)
- Minor bugfixes
2.31.0 (2025-12-03)
## Features * Add tuning for the IMX577 sensor, removing the previously present blue tint * Improve IMX678 support on RVC2 with better black level correction, improving brightness and color accuracy
## New devices support * Add support for a new revision of OAK-Thermal (R8) * Add support for OAK-ToF (R4) * Add support for a new revision of OAK-D-S2-[Pro]-Wide OV9728 variant (R8)
## Bug fixes and stability * Fix a rare issue of IMU preventing a device reboot * Fix a timestamp overflow bug on the BNO08x IMU * Fix an edge case where [dai.Device]{.title-ref} constructor could get stuck indefinitely if the device lost connection at the wrong time by adding a timeout internally * Turn on the watchdog early during discovery of RVC2 USB devices to avoid soft bricking the device along with handling the case where the device gets into that state to recover it on the next boot * Fully disable crashdump extraction when [DEPTHAI_CRASHDUMP=0]{.title-ref} is set
## Misc * Add support to explicitly remove tracklets in [ObjectTracker]{.title-ref} node * Remove limitation for the maximum watchdog frequency from 4.5 seconds to unlimited ("infinity") by adding a software watchdog in firmware
2.30.0 (2025-03-18)
- Features
- Add RVC4 discovery to point users to v3 version of the library for OAK4 devices
- Add support for a new VCM enabling autofocus on new IMX378 CCMs
- Bug fixes
- Fix an edge case in ImageManip to make https://github.com/geaxgx/depthai_hand_tracker run in edge mode again
- Fix an edge case when sending MessageGroup from host to device and using more than 4 messages
2.29.0 (2024-11-26)
-
Features
-
Add the ability to change the calibration on the device in runtime with the new [dai::Device.setCalibration()]{.title-ref} method and to retrieve it with the [dai::Device.getCalibration()]{.title-ref}.
-
- New [StereoDepth]{.title-ref} presets:
-
- [DEFAULT]{.title-ref}
- [FACE]{.title-ref}
- [HIGH_DETAIL]{.title-ref}
- [ROBOTICS]{.title-ref}
-
- Multiple camera improvements (more details in https://github.com/luxonis/depthai-core/pull/972):
-
- Expose more downsampling modes when picking a lower than native resolutions
- Expose more binning modes when binning is picked on IMX582/586 ([sum]{.title-ref} and [avg]{.title-ref})
- HDR on IMX582/586
- Option to bypass 3A for having manual expose/ISO take effect faster
- Initial support for new Sony 4K Starvis sensors: IMX678 and IMX715
- Option to set the main camera to drive auto-exposure and auto-white-balance in multi-camera configurations
-
- Improved StereoDepth filtering and an option to use a set a custom order of filters
-
- Disparity is first scaled to 13 bit before going through filtering, which results in filters being more effective.
-
Misc
-
Remove false reports on crashes that happened on device destruction
- Add [getWidth()]{.title-ref} and [getHeight()]{.title-ref} API to [EncodedFrame]{.title-ref}
File truncated at 100 lines see the full file
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged depthai at Robotics Stack Exchange
Package Summary
| Version | 3.13.0 |
| License | MIT |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
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 (-) |
Package Description
Additional Links
Maintainers
- Aljaž Sebastjan Ahtik
Authors
- Martin Peterlin
DepthAI Library
DepthAI library for interfacing with Luxonis DepthAI hardware. It’s written in C++ and offers Python bindings out of the box.
Important — You’re viewing the
v3.x.ybranch.
- For production projects that still rely on v2, check out the
v2_stablebranch.- Need to migrate? Follow the step-by-step v2 → v3 Porting Guide.
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
Changelog for package depthai
3.13.0 (2026-12-04)
## Features
- [RVC4] Open-source firmware
- The RVC4 firmware source is now public, in [[device/rvc4]{.title-ref}](https://github.com/luxonis/depthai-core/tree/main/device/rvc4). The host library and the firmware of one commit always use the same message definitions
- Build the firmware on an x86-64 host in a public Docker image: [./create_deployment_artifacts.sh rvc4]{.title-ref} in [device/rvc4]{.title-ref}. See the [build instructions](https://github.com/luxonis/depthai-core/blob/main/device/rvc4/README.md#building)
- Run your own build with [DEPTHAI_DEVICE_RVC4_FWP=<path to depthai-device-rvc4-fwp.tar.xz>]{.title-ref}, or embed it in the library with [-D DEPTHAI_DEVICE_RVC4_FWP_PATH=<path>]{.title-ref}. See [Running a custom build](https://github.com/luxonis/depthai-core/blob/main/device/rvc4/README.md#running-a-custom-build-with-depthai-core)
- A source build now also builds the RVC4 firmware. This needs Docker and the acceptance of the firmware licenses ([DEPTHAI_ACCEPT_VENDOR_EULA=yes]{.title-ref}, [DEPTHAI_ACCEPT_QUALCOMM_LICENSE=yes]{.title-ref}). To skip it, set [-D DEPTHAI_DEVICE_RVC4_VERSION=<version>]{.title-ref} (download a released package) or [-D DEPTHAI_ENABLE_DEVICE_RVC4_FW=OFF]{.title-ref}
- [RVC4] *DynamicCalibration and AutoCalibration*
- Both nodes can now run on the device
- New [dai.WorldConstraints]{.title-ref} gives the calibration a metric reference from ArUco or Luxonis markers (marker distances and sizes). Set them with [setWorldConstraints*]{.title-ref} on the node or [Pipeline.setAutoCalibrationWorldConstraints*]{.title-ref}. Examples in [Python](https://github.com/luxonis/depthai-core/blob/main/examples/python/DynamicCalibration/calibration_dynamic_world_constraints.py) and [C++](https://github.com/luxonis/depthai-core/blob/main/examples/cpp/DynamicCalibration/calibration_dynamic_world_constraints.cpp)
- [setThreadPolicy()]{.title-ref} sets the thread count, nice value and CPU affinity of the calibration. On RVC4, the default keeps one fast CPU core free for the other nodes
- Stitching ground plane: in calibrated [PANORAMA]{.title-ref} mode, [setPlane()]{.title-ref} now projects the panorama onto the ground plane, so the ground lines up across cameras that are mounted apart
- [RVC4] NNArchives now accept User Defined Operations (UDO) and apply them to the model at inference time
- [CameraControl.setAutoFocusRegion()]{.title-ref} and [setAutoExposureRegion()]{.title-ref} accept a region in any received frame together with its [ImgTransformation]{.title-ref}, and map it to the sensor
- [ImageAlign.setBackend()]{.title-ref} selects [CPU]{.title-ref}, [GPU]{.title-ref} or [AUTO]{.title-ref}. GPU is available on RVC4
- ImageManip converts GRAY8/RAW8 frames to RGB/BGR (RVC4 and host), for example to send mono frames to a color model
- [RVC4] New [ExternalFrameSyncRole.ISOLATED]{.title-ref} ignores the FSYNC pin so it stays free for M8 external use
- [RVC2] Support for the OG01A1B (mono) and OG01A10 (color) sensors: 1280x1024 at up to 120 FPS, 640x512 (binned) at up to 240 FPS
- New [ToFConfig.enableIntermediateDepth]{.title-ref} (default [True]{.title-ref}) for S5K63D ToF sensors with phase unwrapping. [False]{.title-ref} publishes only the depth of the full four-frame stack
## Bug fixes
-
ImageAlign and Align node
- Aligned depth is now the Z distance in the target camera. Before, the depth was wrong when the cameras were rotated or at different positions along Z
- Holes stay holes, and depth values that are out of range are removed
- [RVC2] ImageAlign no longer sends a black first frame, and Warp no longer sends invalid frames
-
ImageManip
- The valid image region ([ImgTransformation]{.title-ref}) is now correct for crops of scaled frames
- A colormap on GRAY8/RAW8 frames no longer crashes. The colormap output is now RGB, as the frame type says (before: BGR)
-
Camera
- Intrinsics are now correct for sensor modes that crop or bin the sensor (for example RVC2 4K and OAK-D Lite binned modes). On RVC4, also after runtime calibration updates
- [RVC4] [getSensorTemperature()]{.title-ref} now gives degrees Celsius for all sensors, and no value when the sensor has no reading
- [RVC4] Above 121 FPS, all frames now report exposure, ISO, lens position and color temperature, and the timestamps have even steps. Before, 3 of 4 frames reported exposure 0
- [RVC2] Cameras no longer stay overexposed after many [readCalibration()]{.title-ref} calls
-
[RVC4] VideoEncoder H.264/H.265
- The encoder no longer freezes on noisy keyframes (for example a dark scene with high gain at 4000x3000)
- Frames from the host now get the full bitrate. Timestamps that go back no longer stop the output
- [RVC4] NeuralNetwork: a model that the selected runtime cannot build now makes [pipeline.start()]{.title-ref} throw an error. Before, the firmware crashed
File truncated at 100 lines see the full file
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged depthai at Robotics Stack Exchange
Package Summary
| Version | 2.33.0 |
| License | MIT |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
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 (-) |
Package Description
Additional Links
Maintainers
- Aljaž Sebastjan Ahtik
Authors
- Martin Peterlin
DepthAI C++ Library
Core C++ library
Important — You’re viewing the
v2.x.ybranch.
- For the latest version with support for RVC4 devices, please switch to the
mainbranch.
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-corerequired by OpenSSL dependency.sudo yum install perl-coreAnother option is to disable CURL support by setting
DEPTHAI_ENABLE_CURL=OFFwhen 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-Swith-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
Changelog for package depthai
2.33.0 (2026-11-02)
## Features * Add a [device.getState`function, which returns the firmware state of the device in runtime * Add `setProcessor]{.title-ref} function to select the processor for [Sync]{.title-ref} and [Demux]{.title-ref} nodes
## Misc * Expand crashdump data in firmware with more context on what caused the crash * Namespace installation
2.31.1 (2026-01-23)
- Minor bugfixes
2.31.0 (2025-12-03)
## Features * Add tuning for the IMX577 sensor, removing the previously present blue tint * Improve IMX678 support on RVC2 with better black level correction, improving brightness and color accuracy
## New devices support * Add support for a new revision of OAK-Thermal (R8) * Add support for OAK-ToF (R4) * Add support for a new revision of OAK-D-S2-[Pro]-Wide OV9728 variant (R8)
## Bug fixes and stability * Fix a rare issue of IMU preventing a device reboot * Fix a timestamp overflow bug on the BNO08x IMU * Fix an edge case where [dai.Device]{.title-ref} constructor could get stuck indefinitely if the device lost connection at the wrong time by adding a timeout internally * Turn on the watchdog early during discovery of RVC2 USB devices to avoid soft bricking the device along with handling the case where the device gets into that state to recover it on the next boot * Fully disable crashdump extraction when [DEPTHAI_CRASHDUMP=0]{.title-ref} is set
## Misc * Add support to explicitly remove tracklets in [ObjectTracker]{.title-ref} node * Remove limitation for the maximum watchdog frequency from 4.5 seconds to unlimited ("infinity") by adding a software watchdog in firmware
2.30.0 (2025-03-18)
- Features
- Add RVC4 discovery to point users to v3 version of the library for OAK4 devices
- Add support for a new VCM enabling autofocus on new IMX378 CCMs
- Bug fixes
- Fix an edge case in ImageManip to make https://github.com/geaxgx/depthai_hand_tracker run in edge mode again
- Fix an edge case when sending MessageGroup from host to device and using more than 4 messages
2.29.0 (2024-11-26)
-
Features
-
Add the ability to change the calibration on the device in runtime with the new [dai::Device.setCalibration()]{.title-ref} method and to retrieve it with the [dai::Device.getCalibration()]{.title-ref}.
-
- New [StereoDepth]{.title-ref} presets:
-
- [DEFAULT]{.title-ref}
- [FACE]{.title-ref}
- [HIGH_DETAIL]{.title-ref}
- [ROBOTICS]{.title-ref}
-
- Multiple camera improvements (more details in https://github.com/luxonis/depthai-core/pull/972):
-
- Expose more downsampling modes when picking a lower than native resolutions
- Expose more binning modes when binning is picked on IMX582/586 ([sum]{.title-ref} and [avg]{.title-ref})
- HDR on IMX582/586
- Option to bypass 3A for having manual expose/ISO take effect faster
- Initial support for new Sony 4K Starvis sensors: IMX678 and IMX715
- Option to set the main camera to drive auto-exposure and auto-white-balance in multi-camera configurations
-
- Improved StereoDepth filtering and an option to use a set a custom order of filters
-
- Disparity is first scaled to 13 bit before going through filtering, which results in filters being more effective.
-
Misc
-
Remove false reports on crashes that happened on device destruction
- Add [getWidth()]{.title-ref} and [getHeight()]{.title-ref} API to [EncodedFrame]{.title-ref}
File truncated at 100 lines see the full file