# measure_anything

Python API: `depthai_nodes.message.measure_anything`

Per-frame detection geometry and same-host Python messages.

Arrays and nested Python values are retained only within one host runtime. XLink and RemoteConnection serialization is not
implemented.

## Classes

| Name | Description |
| --- | --- |
| [`MeasureAnythingCuboid`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/measure_anything.md#measure_anything-Classes-MeasureAnythingCuboid) | A detection footprint and optional height, without temporal aggregation. |
| [`MeasureAnythingDetection`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/measure_anything.md#measure_anything-Classes-MeasureAnythingDetection) | One eligible detection with read-only float32 XYZ in millimeters. |
| [`MeasureAnythingDetections`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/measure_anything.md#measure_anything-Classes-MeasureAnythingDetections) | One completed or failed frame containing only eligible detection clouds. |
| [`MeasureAnythingDetectorConfig`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/measure_anything.md#measure_anything-Classes-MeasureAnythingDetectorConfig) | Runtime configuration for `MeasureAnythingDetector`. |
| [`MeasureAnythingMeasurement`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/measure_anything.md#measure_anything-Classes-MeasureAnythingMeasurement) | One candidate's no-fit, unknown-height, or measured cuboid outcome. |
| [`MeasureAnythingMeasurements`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/measure_anything.md#measure_anything-Classes-MeasureAnythingMeasurements) | One measurement frame preserving detector identity, plane, and source timing. |

### class `MeasureAnythingCuboid`

```python
class MeasureAnythingCuboid
```

A detection footprint and optional height, without temporal aggregation.

The base center is on the support plane. The unit length axis is tangent to it. The width axis is the upward plane normal crossed
with the length axis. All dimensions and the center use millimeters. Construction snapshots the vectors and validates the finite
geometry.

Properties

| Name | Type | Description |
| --- | --- | --- |
| [`base_center_mm`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/measure_anything.md#measure_anything-Classes-MeasureAnythingCuboid-base_center_mm) | `tuple[float, float, float]` | Cuboid base center on the support plane in millimeters. |
| [`height_mm`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/measure_anything.md#measure_anything-Classes-MeasureAnythingCuboid-height_mm) | `float | None` | Cuboid height in millimeters, or None when unknown. |
| [`length_axis`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/measure_anything.md#measure_anything-Classes-MeasureAnythingCuboid-length_axis) | `tuple[float, float, float]` | Unit length axis tangent to the support plane. |
| [`length_mm`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/measure_anything.md#measure_anything-Classes-MeasureAnythingCuboid-length_mm) | `float` | Cuboid length in millimeters. |
| [`width_mm`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/measure_anything.md#measure_anything-Classes-MeasureAnythingCuboid-width_mm) | `float` | Cuboid width in millimeters. |

Methods

| Name | Description |
| --- | --- |
| [`__init__`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/measure_anything.md#measure_anything-Classes-MeasureAnythingCuboid-__init__) |  |

#### property `base_center_mm`

```python
base_center_mm: tuple[float, float, float]
```

Cuboid base center on the support plane in millimeters.

#### property `height_mm`

```python
height_mm: float | None
```

Cuboid height in millimeters, or None when unknown.

#### property `length_axis`

```python
length_axis: tuple[float, float, float]
```

Unit length axis tangent to the support plane.

#### property `length_mm`

```python
length_mm: float
```

Cuboid length in millimeters.

#### property `width_mm`

```python
width_mm: float
```

Cuboid width in millimeters.

#### method `__init__`

```python
def __init__(
    *,
    base_center_mm: tuple[float, float, float],
    length_axis: tuple[float, float, float],
    length_mm: float,
    width_mm: float,
    height_mm: float | None,
)
```

### class `MeasureAnythingDetection`

```python
class MeasureAnythingDetection
```

One eligible detection with read-only float32 XYZ in millimeters.

`candidate_id` is the zero-based proposal index within this frame. Gaps identify rejected proposals. Construction snapshots the
points into immutable storage, preserving their float32 values and selected-point order.

Properties

| Name | Type | Description |
| --- | --- | --- |
| [`candidate_id`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/measure_anything.md#measure_anything-Classes-MeasureAnythingDetection-candidate_id) | `int` | Zero-based proposal index within this frame. |
| [`xyz_mm`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/measure_anything.md#measure_anything-Classes-MeasureAnythingDetection-xyz_mm) | `NDArray[np.float32]` | Retained read-only point array in selected-point order. |

Methods

| Name | Description |
| --- | --- |
| [`__init__`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/measure_anything.md#measure_anything-Classes-MeasureAnythingDetection-__init__) |  |

#### property `candidate_id`

```python
candidate_id: int
```

Zero-based proposal index within this frame.

#### property `xyz_mm`

```python
xyz_mm: NDArray[np.float32]
```

Retained read-only point array in selected-point order.

#### method `__init__`

```python
def __init__(*, candidate_id: int, xyz_mm: NDArray[np.float32])
```

### class `MeasureAnythingDetections`

```python
class MeasureAnythingDetections(_MeasureAnythingBatch)
```

One completed or failed frame containing only eligible detection clouds.

`Outcome` distinguishes successful and failed frames.

Items own their points until consumption. No source cloud or image is retained. `decisions` contains proposal diagnostics without
source-point indices. Native Buffer timestamps and sequence repeat the source cloud metadata.

Properties

| Name | Type | Description |
| --- | --- | --- |
| [`decisions`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/measure_anything.md#measure_anything-Classes-MeasureAnythingDetections-decisions) | `tuple[_MeasureAnythingDecision, ...]` | Diagnostics for every proposed candidate, in proposal order. |
| [`items`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/measure_anything.md#measure_anything-Classes-MeasureAnythingDetections-items) | `tuple[MeasureAnythingDetection, ...]` | Eligible detections in proposal order. |

Methods

| Name | Description |
| --- | --- |
| [`__init__`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/measure_anything.md#measure_anything-Classes-MeasureAnythingDetections-__init__) |  |

#### property `decisions`

```python
decisions: tuple[_MeasureAnythingDecision, ...]
```

Diagnostics for every proposed candidate, in proposal order.

#### property `items`

```python
items: tuple[MeasureAnythingDetection, ...]
```

Eligible detections in proposal order.

#### method `__init__`

```python
def __init__(
    *,
    frame: str,
    plane: SupportPlane | None,
    items: tuple[MeasureAnythingDetection, ...] = (),
    decisions: tuple[_MeasureAnythingDecision, ...] = (),
    sources: tuple[_MeasureAnythingSourceTiming, ...] = (),
    algorithm_id: str = ALGORITHM_ID,
    outcome: _MeasureAnythingBatch.Outcome = _MeasureAnythingBatch.Outcome.SUCCESS,
    failure_code: str | None = None,
)
```

### class `MeasureAnythingDetectorConfig`

```python
class MeasureAnythingDetectorConfig(dai.Buffer)
```

Runtime configuration for `MeasureAnythingDetector`.

Send this same-host message to the node's `inputConfig`. One pending update is applied in queue order before each synchronized
scene, when available. The active configuration persists until another update arrives. Updates received during processing apply to
a later scene. If the detector was built without a support plane, this config activates processing for the next consumed scene
group.

Attributes

| Name | Type | Description |
| --- | --- | --- |
| `supportPlane` | `SupportPlane` | Support-plane equation in the point cloud's common calibration reference frame, in millimeters. The reference camera must be above the surface. Either normal sign is accepted. |

### class `MeasureAnythingMeasurement`

```python
class MeasureAnythingMeasurement
```

One candidate's no-fit, unknown-height, or measured cuboid outcome.

`Status` identifies the footprint and height result.

Attributes

| Name | Type | Description |
| --- | --- | --- |
| `candidate_id` | `int` |  |
| `cuboid` | `MeasureAnythingCuboid | None` |  |
| `status` | `MeasureAnythingMeasurement.Status` |  |

Classes

| Name | Description |
| --- | --- |
| [`Status`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/measure_anything.md#measure_anything-Classes-MeasureAnythingMeasurement-Status) | A detection's footprint and height outcome. |

#### class `Status`

```python
class Status(str, Enum)
```

A detection's footprint and height outcome.

Attributes

| Name | Type | Description |
| --- | --- | --- |
| `HEIGHT_UNKNOWN` | `str` |  |
| `MEASURED` | `str` |  |
| `NO_FIT` | `str` |  |

### class `MeasureAnythingMeasurements`

```python
class MeasureAnythingMeasurements(_MeasureAnythingBatch)
```

One measurement frame preserving detector identity, plane, and source timing.

`Outcome` is shared with `MeasureAnythingDetections.Outcome`.

Each eligible detection has one outcome, including no-fit and unknown-height. An empty successful input produces an empty
successful output. A failed input or measurement call produces a failed frame with no partial results.

Properties

| Name | Type | Description |
| --- | --- | --- |
| [`items`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/measure_anything.md#measure_anything-Classes-MeasureAnythingMeasurements-items) | `tuple[MeasureAnythingMeasurement, ...]` | Per-object geometry outcomes in input order. |

Methods

| Name | Description |
| --- | --- |
| [`__init__`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/message/measure_anything.md#measure_anything-Classes-MeasureAnythingMeasurements-__init__) |  |

#### property `items`

```python
items: tuple[MeasureAnythingMeasurement, ...]
```

Per-object geometry outcomes in input order.

#### method `__init__`

```python
def __init__(
    *,
    frame: str,
    plane: SupportPlane | None,
    items: tuple[MeasureAnythingMeasurement, ...] = (),
    sources: tuple[_MeasureAnythingSourceTiming, ...] = (),
    algorithm_id: str = ALGORITHM_ID,
    outcome: _MeasureAnythingBatch.Outcome = _MeasureAnythingBatch.Outcome.SUCCESS,
    failure_code: str | None = None,
)
```
