Skip to main content

DepthAI Nodes

License

CI codecov

Ruff Docformatter Black

🌟 Overview

DepthAI Nodes is a Python "contrib" library designed to simplify host-side development with a growing collection of modular, high-level nodes. These cover a range of common needs - from neural network post-processing and I/O patterns to utility nodes for faster prototyping. With just a few lines of code, you can scaffold sophisticated pipelines, saving time and reducing boilerplate. In order to use these nodes you need to have your pipeline written with DepthAIv3.

NOTE: We are always listening to the community so feel free to report and feedback, issues or contribute to the library with our own host nodes.

📜 Table of Contents

🛠️ Installation

The depthai_nodes package is hosted on PyPI, so you can install it with pip.

To install the package, run:

pip install depthai-nodes

Manual installation

If you want to manually install the package from the GitHub repository you can run:

git clone git@github.com:luxonis/depthai-nodes.git

and then inside the directory run:

pip install .

📦 Content

This library is organized into three primary modules, each focused on a specific aspect of working with DepthAI on the host side:

  • message - Custom message types
  • node - High-level, modular host-side nodes
  • runtime - Runtime integrations

📨 Message

The message module defines a set of extended message types designed to simplify working with outputs from various neural networks. These go beyond the standard DepthAI messages and include richer data structures for tasks such as object detection, segmentation, classification, pose estimation, and more.

These enhanced messages aim to reduce the boilerplate code needed for parsing and interpreting NN outputs, making it easier to plug them into visualization or processing pipelines. You can learn more about each message type in the dedicated README.

🧩 Node

The node module provides a collection of ready-to-use host-side nodes that abstract common processing patterns and tasks. These nodes fall into three main categories:

  • Parser nodes - Handle post-processing for specific model architectures such as YOLO, MediaPipe, YuNet, etc.
  • Helper nodes - Like ParsingNeuralNetwork and ParserGenerator which help manage simple or complex model outputs more efficiently.
  • Utility nodes – Perform common operations like detection filtering, drawing overlays, applying segmentation colormaps, and more - all in just a few lines of code.

This modular approach allows you to rapidly prototype and scale complex applications with less effort while keeping your code clean and maintainable.

To read more about the nodes and see simple examples, please refer to the nodes documentation.

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

If you want to contribute to this project, read the instructions in CONTRIBUTING.md

Metadata

Release files for depthai-nodes 0.6.2

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.6.2
File Size Uploaded
depthai_nodes-0.6.2.tar.gz 180.6 kB Details

Built distribution (wheel)

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

Total release size: 449.7 kB

Release files / depthai_nodes-0.6.2.tar.gz

Download URL depthai_nodes-0.6.2.tar.gz
Size 180.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7409f5e947992ac87ec1fbcb018dba559b1038adeb1c3224b5d246c3a537bee8
BLAKE2b-256 checksum
How to use checksums
ec9fa4b7a6b8e968c3aa50360dcdb7bf090ab52a2add74ebc3dbd6cd841ec629
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.6.2-py3-none-any.whl

Download URL depthai_nodes-0.6.2-py3-none-any.whl
Size 269.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
687502c1fed4e999605ccbfa7c9bfa24e5727095ae09eeabd8822b6ba6e2bc47
BLAKE2b-256 checksum
How to use checksums
3cec3864e945371495c4aed70c4dc17340a9fb5c3c88677a502dff06da86960d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

0.7.0

2 release files

This release

0.6.2 This release

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

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