Skip to main content

DepthAI Nodes

License

CI codecov

Ruff Docformatter

🌟 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

Install from PyPI:

pip install depthai-nodes

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.

Or 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 ParsingNeuralNetwork and ParserGenerator, 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. AutoSupportPlane finds and holds the support plane, and can optionally check and refit it. SupportPlaneCalibrator and AutoSupportPlane require open3d.
  • Box measurement nodes detect, track, and measure boxes from color and a point cloud. BoxDetector and BoxMeasurer run on RVC4 only. BoxDimensioner requires 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")

🤝 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.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for depthai-nodes 0.8.1
File Size Uploaded Provenance Actions
depthai_nodes-0.8.1.tar.gz 266.8 kB Without provenance Details for depthai_nodes-0.8.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for depthai-nodes 0.8.1
File Interpreter ABI Platform Actions
depthai_nodes-0.8.1-py3-none-any.whl Python 3 none any Details for depthai_nodes-0.8.1-py3-none-any.whl

Total release size: 651.0 kB

Release files / depthai_nodes-0.8.1.tar.gz

Download URL depthai_nodes-0.8.1.tar.gz
Size 266.8 kB
Tags Source
SHA-256 checksum
How to use checksums
661af227805b5f9c16ff6c22533e2db79128d81d4d65ef30ae3a0a2d9fd14e60
BLAKE2b-256 checksum
How to use checksums
9a722825699602df418b7923aa78ea2e942b7b2a3b04abadf8c02c4f763bef62
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.8.1-py3-none-any.whl

Download URL depthai_nodes-0.8.1-py3-none-any.whl
Size 384.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db5cee034851645e2eb3d13075e0ba56ee441b408d76dd993affdfa1c8d4267f
BLAKE2b-256 checksum
How to use checksums
2d04dc32b8a077974bab6acdb696c7912537b8a4180eafe865e60d29992bf69f
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.8.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page