DepthAI Nodes
🌟 Overview
DepthAI Nodes provides reusable nodes and helpers for DepthAI v3 pipelines, including neural network post-processing, image utilities, message handling, and runtime integrations. Inference helpers support both native DepthAI parsers and Python host parsers.
For complete Python API documentation, see the DepthAINodes documentation and API reference.
📜 Table of Contents
🛠️ Installation
Requires Python 3.10 or newer. We use Python 3.12 for development and release builds, and CI tests Python 3.10, 3.12, and 3.14.
Install from PyPI:
pip install depthai-nodes
Box measurement
The box measurement and support plane nodes need open3d. Install it with the box-measurement extra:
pip install "depthai-nodes[box-measurement]"
On Debian or Ubuntu, open3d also needs system libraries that minimal images such as Docker containers and CI runners often lack:
sudo apt-get install libegl1 libgl1 libgomp1
open3d 0.20 publishes Linux wheels only for glibc 2.35 or newer, such as Debian 12+ or Ubuntu 22.04+. On older systems, including Debian 11, Ubuntu 20.04 and JetPack 5, pip cannot find a matching open3d and the install fails.
MeasureAnything
Install the dependencies for MeasureAnythingDetector and MeasureAnythingDimensioner with the measure-anything extra:
pip install "depthai-nodes[measure-anything]"
See the interactive algorithm guide for processing steps, accuracy and performance, and the implementation record for provenance and verification coverage.
For RGB-aligned depth, use the shared axial-depth correction before PointCloud. The deterministic pipeline example runs on the host and in an OAK-4 standalone app.
From source
Install from source:
git clone https://github.com/luxonis/depthai-nodes.git
cd depthai-nodes
pip install .
📦 Content
📨 Message
The message module provides Collection, GatheredData, and SnapData
messages, support plane messages such as SupportPlane and
SupportPlaneCalibrationResult, box measurement messages such as
BoxDetections and BoxMeasurements, plus creator functions for native DepthAI parser messages. Creators
cover detections, segmentation, classification, keypoints, maps, and other model
outputs. See the message package documentation for the available
types and their roles.
🧩 Node
The node module provides parsers and pipeline helpers:
- Parser nodes handle model post-processing for architectures such as YOLO, MediaPipe, and YuNet.
- Inference helpers, including
ParsingNeuralNetworkandParserGenerator, create and connect inference and parser nodes. - Utility nodes handle detection filtering, image overlays, colormaps, and message collection.
- Support plane nodes find the support plane in a point cloud, checked against gravity from IMU data.
AutoSupportPlanefinds and holds the support plane, and can optionally check and refit it.SupportPlaneCalibratorandAutoSupportPlanerequire open3d. - Box measurement nodes detect, track, and measure boxes from color and a point cloud.
BoxDetectorandBoxMeasurerrun on RVC4 only.BoxDimensionerrequires open3d and has no RVC4-only check.
ParsingNeuralNetwork and ParserGenerator use native DepthAI parsers by default. Use HostParsingNeuralNetwork or pass hostOnly=True to ParserGenerator.build() to select this package's host parsers.
See the node package documentation for available nodes and examples.
Runtime
The runtime module contains runtime integrations. Its OAK4 QNN helper
creates ONNX Runtime sessions on the Hexagon DSP when used with the
onnxruntime variant of the oakapp-base image:
from depthai_nodes.runtime import onnx_qnn_session
session = onnx_qnn_session("model.onnx")
serve_frontend hosts a built custom frontend alongside a DepthAI pipeline.
Build it first with cd frontend && npm ci && npm run build, then:
from pathlib import Path
import depthai as dai
from depthai_nodes.runtime import serve_frontend
with serve_frontend(Path(__file__).resolve().parent / "frontend" / "dist"):
visualizer = dai.RemoteConnection(serveFrontend=False)
# Initialize the device and run the application's pipeline here.
The context manager serves assets and browser routes at http://localhost:8082
and stops on exit, including exceptions. Set host and port to customize the
address, or enabled=False when another server handles hosting. It serves HTTP
files only; the frontend connects to RemoteConnection separately for live data.
🤝 Contributing
See CONTRIBUTING.md for development setup, parser guidelines, and testing instructions. Feedback and bug reports are welcome in GitHub issues.
Metadata
Release files for depthai-nodes 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| depthai_nodes-0.9.0.tar.gz | 556.0 kB | Without provenance | Details for depthai_nodes-0.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| depthai_nodes-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for depthai_nodes-0.9.0-py3-none-any.whl |
Total release size: 1.2 MB
Release files / depthai_nodes-0.9.0.tar.gz
| Download URL | depthai_nodes-0.9.0.tar.gz |
|---|---|
| Size | 556.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
849eb6c15898ad7f324d4ae06ea165453ab994f5dc35666d2bfd7d82b6d83ee0
|
|
BLAKE2b-256 checksum How to use checksums |
3337cc9daf664c74eea36a1a9e7c57b5e9e3a52bc3df2e1d26fb25460c76a112
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / depthai_nodes-0.9.0-py3-none-any.whl
| Download URL | depthai_nodes-0.9.0-py3-none-any.whl |
|---|---|
| Size | 637.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d3b6c4409527610fe57f6e21e34ca1ee9dfefde64e7ec72ebf64c1b3fbb4db79
|
|
BLAKE2b-256 checksum How to use checksums |
74710b71701864aa846fd94831cda797c9f4d0e1c9f2ddc254b3f1ed4c2a83a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for depthai-nodes 0.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.