# node

Python API: `depthai_nodes.node`

Pipeline nodes for inference, postprocessing, and host-side message handling.

Create nodes with `pipeline.create(...)` and connect their input and output ports. The classes in this package integrate native
DepthAI inference and parsers with Python postprocessing, image utilities, and custom message handling.

[ImageAlignDepthCorrection](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/image_align_depth_correction.md#image_align_depth_correction-Classes-ImageAlignDepthCorrection)
converts ImageAlign source axial millimeters into RGB target-camera axial depth before PointCloud, with explicit policy and
associated provenance. See
[depthai_nodes.utils.axial_depth](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/utils/axial_depth.md).

Table of Contents

Contents

 * [Inference and parser
   selection](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node.md#node-Inference-and-parser-selection)
 * [Host parser
   catalogue](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node.md#node-Host-parser-catalogue)
   * [Object
   detection](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node.md#node-Host-parser-catalogue-Object-detection)
    * [Classification and
      segmentation](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node.md#node-Host-parser-catalogue-Classification-and-segmentation)
    * [Keypoints and feature
      matching](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node.md#node-Host-parser-catalogue-Keypoints-and-feature-matching)
    * [Other
      outputs](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node.md#node-Host-parser-catalogue-Other-outputs)
 * [Utility
   nodes](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node.md#node-Utility-nodes)
   * [Image and depth
   processing](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node.md#node-Utility-nodes-Image-and-depth-processing)
    * [Detection
      processing](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node.md#node-Utility-nodes-Detection-processing)
    * [Message handling and
      uploads](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node.md#node-Utility-nodes-Message-handling-and-uploads)
 * [Support
   plane](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node.md#node-Support-plane)
 * [Box
   measurement](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node.md#node-Box-measurement)
 * [MeasureAnything
   measurement](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node.md#node-MeasureAnything-measurement)
 * [Extending the
   package](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node.md#node-Extending-the-package)

## Inference and parser selection

[ParsingNeuralNetwork](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsing_neural_network.md#parsing_neural_network-Classes-ParsingNeuralNetwork)
builds a neural network and the native DepthAI parsers specified by an NN Archive. It exposes parser output through `out` and
`getOutput()` and the underlying network's passthrough streams.
[HostParsingNeuralNetwork](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/host_parsing_neural_network.md#host_parsing_neural_network-Classes-HostParsingNeuralNetwork)
offers the same interface with the Python parser implementations from this package.
[ExtendedNeuralNetwork](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/extended_neural_network.md#extended_neural_network-Classes-ExtendedNeuralNetwork)
adds input resizing and optional coordinate remapping around `ParsingNeuralNetwork`.

[ParserGenerator](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parser_generator.md#parser_generator-Classes-ParserGenerator)
creates parsers from NN Archive head metadata. Its `hostOnly=False` default selects native DepthAI parsers; `hostOnly=True`
selects this package's implementations. This flag selects the implementation, not the device on which it executes. Native parser
placement also depends on DepthAI and the device platform. On RVC2, this package reports that non-detection native parsers and
detection parsers with mask outputs run on the host. Most native parsers are in `dai.beta.node`; detection and segmentation
parsers are in `dai.node`.

`ParsingNeuralNetwork` accepts an archive object, a Model Zoo reference, or a `dai.NNModelDescription` through `nnSource`. For a
local archive, construct `dai.NNArchive(path)` first. `ExtendedNeuralNetwork` accepts the same source forms through `nnSource`.
See
[ParsingNeuralNetwork.build](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsing_neural_network.md#parsing_neural_network-Classes-ParsingNeuralNetwork-build)
and
[ExtendedNeuralNetwork.build](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/extended_neural_network.md#extended_neural_network-Classes-ExtendedNeuralNetwork-build)
for accepted inputs and configuration.

> **Example**
> Build native segmentation inference from a Model Zoo reference:

```text
import depthai as dai
from depthai_nodes.node import ParsingNeuralNetwork

with dai.Pipeline() as pipeline:
    camera = pipeline.create(dai.node.Camera).build()
    nn = pipeline.create(ParsingNeuralNetwork).build(
        camera,
        nnSource="luxonis/mediapipe-selfie-segmentation:256x144",
    )
    results = nn.out.createOutputQueue()
    pipeline.start()
    mask = results.get()
```

Replace `ParsingNeuralNetwork` with `HostParsingNeuralNetwork` to select the host parser implementation.

## Host parser catalogue

Host parsers consume `dai.NNData` and emit native DepthAI messages. Model metadata must match the parser's expected tensor names
and shapes. All parsers in this catalogue can be imported from either `depthai_nodes.node` or `depthai_nodes.node.parsers`.

### Object detection

 * [DetectionParser](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsers/detection.md#detection-Classes-DetectionParser):
   generic bounding-box and score tensors.
 * [YOLOExtendedParser](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsers/yolo.md#yolo-Classes-YOLOExtendedParser):
   supported YOLO detection, pose, and instance segmentation variants.
 * [YuNetParser](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsers/yunet.md#yunet-Classes-YuNetParser)
   and
   [SCRFDParser](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsers/scrfd.md#scrfd-Classes-SCRFDParser):
   face detection.
 * [MPPalmDetectionParser](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsers/mediapipe_palm_detection.md#mediapipe_palm_detection-Classes-MPPalmDetectionParser):
   MediaPipe palm detection.
 * [PPTextDetectionParser](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsers/ppdet.md#ppdet-Classes-PPTextDetectionParser):
   PaddleOCR text detection.
 * [RFDETRParser](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsers/rf_detr.md#rf_detr-Classes-RFDETRParser):
   RF-DETR detections and optional instance masks.

These parsers emit `dai.ImgDetections` with the fields supported by the model.

### Classification and segmentation

 * [ClassificationParser](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsers/classification.md#classification-Classes-ClassificationParser):
   class names and scores in `dai.beta.Classifications`.
 * [ClassificationSequenceParser](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsers/classification_sequence.md#classification_sequence-Classes-ClassificationSequenceParser):
   per-step classifications, including text recognition, in `dai.beta.Classifications`.
 * [SegmentationParser](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsers/segmentation.md#segmentation-Classes-SegmentationParser):
   semantic masks in `dai.SegmentationMask`.
 * [FastSAMParser](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsers/fastsam.md#fastsam-Classes-FastSAMParser):
   prompted segmentation in `dai.SegmentationMask`.

### Keypoints and feature matching

 * [KeypointParser](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsers/keypoints.md#keypoints-Classes-KeypointParser):
   2D or 3D keypoint tensors.
 * [HRNetParser](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsers/hrnet.md#hrnet-Classes-HRNetParser):
   body keypoints from heatmaps.
 * [SuperAnimalParser](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsers/superanimal_landmarker.md#superanimal_landmarker-Classes-SuperAnimalParser):
   animal landmarks from heatmaps.

These keypoint parsers emit `dai.beta.Keypoints`.
[XFeatMonoParser](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsers/xfeat.md#xfeat-Classes-XFeatMonoParser)
emits `dai.TrackedFeatures` from one source;
[XFeatStereoParser](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsers/xfeat.md#xfeat-Classes-XFeatStereoParser)
matches features between two sources and emits paired `dai.TrackedFeatures`.

### Other outputs

 * [LaneDetectionParser](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsers/lane_detection.md#lane_detection-Classes-LaneDetectionParser):
   UFLD lane points in `dai.beta.Clusters`.
 * [MLSDParser](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsers/mlsd.md#mlsd-Classes-MLSDParser):
   line detections in `dai.beta.Lines`.
 * [EmbeddingsParser](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsers/embeddings.md#embeddings-Classes-EmbeddingsParser):
   passes through `dai.NNData` embedding outputs.
 * [RegressionParser](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsers/regression.md#regression-Classes-RegressionParser):
   regression values in `dai.beta.Predictions`.
 * [MapOutputParser](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsers/map_output.md#map_output-Classes-MapOutputParser):
   numeric maps, including depth estimates, in `dai.beta.Map2D`.
 * [ImageOutputParser](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsers/image_output.md#image_output-Classes-ImageOutputParser):
   image-to-image results in `dai.ImgFrame`.

## Utility nodes

### Image and depth processing

 * [ApplyColormap](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/apply_colormap.md#apply_colormap-Classes-ApplyColormap):
   colorizes 2D maps and masks into `dai.ImgFrame` messages.
 * [ApplyDepthColormap](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/apply_depth_colormap.md#apply_depth_colormap-Classes-ApplyDepthColormap):
   uses percentile normalization for depth or disparity; non-positive values are excluded from normalization and displayed as
   black.
 * [FrameCropper](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/frame_cropper.md#frame_cropper-Classes-FrameCropper):
   crops and resizes frames using detections or groups of `dai.ImageManipConfig` messages, emitting one frame per crop.
 * [Tiling](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/tiling.md#tiling-Classes-Tiling):
   produces tiled `dai.ImageManipConfig` groups and accepts runtime configuration changes.
 * [ImgFrameOverlay](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/img_frame_overlay.md#img_frame_overlay-Classes-ImgFrameOverlay):
   blends two `dai.ImgFrame` streams.

### Detection processing

 * [CoordinatesMapper](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/coordinates_mapper.md#coordinates_mapper-Classes-CoordinatesMapper):
   maps supported messages from crops or tiles into a target image transformation, including map and mask pixels.
 * [ImgDetectionsFilter](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/img_detections_filter.md#img_detections_filter-Classes-ImgDetectionsFilter):
   filters native detections by label, confidence, or area, with optional suppression, sorting, and count limits.
 * [InstanceToSemanticMask](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/instance_to_semantic_mask.md#instance_to_semantic_mask-Classes-InstanceToSemanticMask):
   replaces instance IDs with detection class labels.

> **Example**
> With an existing pipeline and detection-producing `nn.out` stream:

```text
from depthai_nodes.node import ImgDetectionsFilter

filtered = pipeline.create(ImgDetectionsFilter).build(nn.out)
filtered.keepLabels([0]).minConfidence(0.5).sortByConfidence().takeFirstK(10)
```

This keeps class 0 detections, orders them by descending confidence, and retains at most ten. `rejectLabels([0])` excludes class 0
instead.

### Message handling and uploads

 * [GatherData](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/gather_data.md#gather_data-Classes-GatherData):
   collects a configurable number of timestamp-matched messages per reference into
   [depthai_nodes.message.GatheredData](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/gathered_data.md#gathered_data-Classes-GatheredData).
   The default count is the number of detections in the reference message. Emits groups in order with at most 32 pending
   references by default, and supports optional timeouts.
 * [MessageCollector](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/message_collector.md#message_collector-Classes-MessageCollector):
   batches messages within half a frame interval into
   [depthai_nodes.message.Collection](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/collection.md#collection-Classes-Collection),
   emitting when a newer timestamp falls outside the matching window.
 * [SnapsUploader](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/snaps_uploader.md#snaps_uploader-Classes-SnapsUploader):
   accepts
   [depthai_nodes.message.SnapData](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/snap_data.md#snap_data-Classes-SnapData)
   and delegates uploads and optional offline caching to the native EventsManager.

## Support plane

[SupportPlaneCalibrator](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/support_plane_calibrator/support_plane_calibrator.md#support_plane_calibrator-Classes-SupportPlaneCalibrator)
finds the support plane in a point cloud, checked against gravity from IMU data. Each Start control begins a calibration attempt,
which ends with one
[depthai_nodes.message.SupportPlaneCalibrationResult](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/support_plane_calibration.md#support_plane_calibration-Classes-SupportPlaneCalibrationResult)
on `out`; a succeeded result holds support plane candidates. A verify control asks for a plane verification of a given support
plane, answered with a
[depthai_nodes.message.SupportPlaneVerificationResult](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/support_plane_calibration.md#support_plane_calibration-Classes-SupportPlaneVerificationResult)
on `verificationOutput`. It carries the plane's angle to gravity, its on-plane ratio (the share of the next point cloud on the
plane within `check_distance_mm`), and whether it was accepted: within `max_gravity_angle_deg` of level, below the camera within
any range set by `min_camera_height_mm` and `max_camera_height_mm`, and with an on-plane ratio of at least `min_on_plane_ratio`.
Candidates pass the same level test and hold at least `min_inlier_count` points and `min_inlier_ratio` of the cloud.
[PlaneCalibrationConfig](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/support_plane_calibrator/plane_calibration_config.md#plane_calibration_config-Classes-PlaneCalibrationConfig)
holds the plane-fitting and attempt settings, fixed at `build`.

`SupportPlaneCalibrator` needs open3d, installed with `pip install "depthai-nodes[box-measurement]"`; without it `build` raises
`ImportError`.

> **Example**
> With existing `pointCloud` and `imu` outputs and a point cloud of `width` by `height` points, calibrate once and save the best support plane:

```text
from depthai_nodes.message import SupportPlaneCalibrationControl
from depthai_nodes.node import SupportPlaneCalibrator

calibrator = pipeline.create(SupportPlaneCalibrator).build(
    pointCloud, imu, (width, height)
)
control = calibrator.inputControl.createInputQueue()
results = calibrator.out.createOutputQueue()
pipeline.start()

control.send(SupportPlaneCalibrationControl.start())
result = results.get()
if result.candidates:
    best = max(result.candidates, key=lambda c: c.inlier_count)
    best.plane.toJsonFile("support_plane.json")
```

`result.outcome` tells whether the attempt succeeded, failed at the attempt cap, or was cancelled; only a succeeded result has
candidates.

[AutoSupportPlane](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/support_plane_calibrator/auto_support_plane.md#auto_support_plane-Classes-AutoSupportPlane)
wraps a `SupportPlaneCalibrator` to find and hold the support plane, sending a
[depthai_nodes.message.AutoSupportPlaneResult](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/auto_support_plane_result.md#auto_support_plane_result-Classes-AutoSupportPlaneResult)
on `out`.
[AutoSupportPlaneConfig](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/support_plane_calibrator/auto_support_plane_config.md#auto_support_plane_config-Classes-AutoSupportPlaneConfig)
sets the mode: `ON_START` finds a plane once and holds it; `CONTINUOUS` also checks it about every `check_interval_sec` and refits
after repeated failed checks, keeping the old plane meanwhile. Its `verificationOutput` passes on the inner calibrator's plane
verifications, one per `initialPlane` gate or plane check, to watch the plane's angle and on-plane ratio. A `selectCandidate`
given to `build` picks the plane from a successful attempt's `SupportPlaneCalibrationResult`. It needs open3d, like the
calibrator.

Drive `SupportPlaneCalibrator` directly instead when a person picks among the support plane candidates, or for any custom flow.

> **Example**
> With existing `pointCloud` and `imu` outputs and a point cloud of `width` by `height` points, keep the support plane up to date:

```text
from depthai_nodes.node import (
    AutoSupportPlane,
    AutoSupportPlaneConfig,
    PlaneCalibrationConfig,
)

config = AutoSupportPlaneConfig(
    mode=AutoSupportPlaneConfig.Mode.CONTINUOUS,
    calibration=PlaneCalibrationConfig(max_calibration_attempts=10),
)
node = pipeline.create(AutoSupportPlane).build(
    pointCloud, imu, (width, height), config
)
results = node.out.createOutputQueue()
pipeline.start()

while pipeline.isRunning():
    result = results.get()
    if result.plane is not None:
        result.plane.toJsonFile("support_plane.json")
```

`result.passed` is `False` when a calibration attempt ended at the attempt cap; the plane is then the old one kept after a failed
refit, or `None` when there is none yet.

## Box measurement

 * [BoxDetector](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/box_detector/box_detector.md#box_detector-Classes-BoxDetector):
   detects, segments, and tracks boxes in a color stream and emits
   [depthai_nodes.message.BoxDetections](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/box_detections.md#box_detections-Classes-BoxDetections).
 * [BoxDimensioner](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/box_dimensioner/box_dimensioner.md#box_dimensioner-Classes-BoxDimensioner):
   measures box detections in an organized point cloud and emits
   [depthai_nodes.message.BoxMeasurements](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/box_measurements.md#box_measurements-Classes-BoxMeasurements).
 * [BoxMeasurer](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/box_measurer.md#box_measurer-Classes-BoxMeasurer):
   wires `BoxDetector` into `BoxDimensioner` behind one `build`.

Boxes are measured against a support plane; see "Support plane" above. It comes from the `plane` of a support plane candidate in a
[depthai_nodes.message.SupportPlaneCalibrationResult](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/support_plane_calibration.md#support_plane_calibration-Classes-SupportPlaneCalibrationResult)
or from a saved file through `SupportPlane.fromJsonFile`, and is passed to `build` or through `setSupportPlane`. The confidence
threshold and the support plane can both change while the pipeline runs.

`BoxDetector` and `BoxMeasurer` run on RVC4 only and download the `luxonis/box-instance-segmentation` model from the Model Zoo at
build. `BoxDimensioner` and `BoxMeasurer` need open3d, installed with `pip install "depthai-nodes[box-measurement]"`; without it
their `build` raises `ImportError`.

> **Example**
> With existing `color` and `pointCloud` outputs and a point cloud of `width` by `height` points:

```text
from depthai_nodes.message import SupportPlane
from depthai_nodes.node import BoxMeasurer

plane = SupportPlane.fromJsonFile("support_plane.json")
measurer = pipeline.create(BoxMeasurer).build(
    color, pointCloud, (width, height), supportPlane=plane
)
measurements = measurer.out.createOutputQueue()
```

Each `BoxMeasurements` message read from `measurements` holds one result per box detection, with its box dimensions once measured.

## MeasureAnything measurement

[MeasureAnythingDetector](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/measure_anything_detector/measure_anything_detector.md#measure_anything_detector-Classes-MeasureAnythingDetector)
selects eligible object point clouds from calibrated scene inputs.
[MeasureAnythingDimensioner](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/measure_anything_dimensioner/measure_anything_dimensioner.md#measure_anything_dimensioner-Classes-MeasureAnythingDimensioner)
fits their dimensions against the plane carried by each detection batch. Install `depthai-nodes[measure-anything]` for the frozen
algorithm's dependencies.

The node class docstrings describe wiring, input profiles, calibration, synchronization, support-plane updates, outputs and
current limitations. The packaged `algorithms/measure_anything/implementation/visualization.html` provides the interactive
algorithm and evidence guide. Existing box nodes retain their separate APIs and behavior.

## Extending the package

[BaseHostNode](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/base_host_node.md#base_host_node-Classes-BaseHostNode)
supplies platform-specific image formats and logging for synchronized `process()` callbacks.
[BaseThreadedHostNode](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/base_threaded_host_node.md#base_threaded_host_node-Classes-BaseThreadedHostNode)
provides the same setup for nodes with their own `run()` loop.
[BaseParser](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsers/base_parser.md#base_parser-Classes-BaseParser)
defines the common NNData input and parsed-message output interface.

Parser implementations separate tensor extraction, array computation, and message emission. Document tensor layouts and coordinate
conventions on the processing helper and preserve input metadata when emitting results.

## Child Pages

 * [box_detector](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/box_detector.md)
 * [box_dimensioner](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/box_dimensioner.md)
 * [measure_anything_detector](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/measure_anything_detector.md)
 * [measure_anything_dimensioner](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/measure_anything_dimensioner.md)
 * [parsers](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsers.md)
 * [support_plane_calibrator](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/support_plane_calibrator.md)
 * [utils](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/utils.md)
 * [apply_colormap](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/apply_colormap.md)
 * [apply_depth_colormap](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/apply_depth_colormap.md)
 * [base_host_node](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/base_host_node.md)
 * [base_threaded_host_node](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/base_threaded_host_node.md)
 * [box_measurer](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/box_measurer.md)
 * [coordinates_mapper](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/coordinates_mapper.md)
 * [extended_neural_network](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/extended_neural_network.md)
 * [frame_cropper](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/frame_cropper.md)
 * [gather_data](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/gather_data.md)
 * [host_parsing_neural_network](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/host_parsing_neural_network.md)
 * [image_align_depth_correction](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/image_align_depth_correction.md)
 * [img_detections_filter](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/img_detections_filter.md)
 * [img_frame_overlay](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/img_frame_overlay.md)
 * [instance_to_semantic_mask](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/instance_to_semantic_mask.md)
 * [message_collector](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/message_collector.md)
 * [parser_generator](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parser_generator.md)
 * [parsing_neural_network](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsing_neural_network.md)
 * [snaps_uploader](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/snaps_uploader.md)
 * [tiling](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/tiling.md)
