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.0

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.0
File Size Uploaded Provenance Actions
depthai_nodes-0.8.0.tar.gz 264.4 kB Without provenance Details for depthai_nodes-0.8.0.tar.gz

Built distribution (wheel)

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

Total release size: 645.5 kB

Release files / depthai_nodes-0.8.0.tar.gz

Download URL depthai_nodes-0.8.0.tar.gz
Size 264.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5b896cc67b127c8b7d92ae3cf57570d35ea36998165d67a9dc5577fed28837bb
BLAKE2b-256 checksum
How to use checksums
333fa7f596869af80a9d77194af92a78f4e47221c363719594742c1b219298d4
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.0-py3-none-any.whl

Download URL depthai_nodes-0.8.0-py3-none-any.whl
Size 381.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e74189064a05729f4c4bf3ac47b27351148da4d5734d5712cd606a020c439b6
BLAKE2b-256 checksum
How to use checksums
4d9c0c870ceec3a6685aa49fb5a5bd53d672635444524c6e382e68ee125d5f47
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.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.

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