SpatialLocationCalculatorData

This message is an output from the SpatialLocationCalculator node.

Examples of functionality

Reference

class depthai.SpatialLocationCalculatorData

SpatialLocationCalculatorData message. Carries spatial information (X,Y,Z) and their configuration parameters

getData(self: object) → numpy.ndarray[numpy.uint8]

Get non-owning reference to internal buffer

Returns

Reference to internal buffer

getRaw(self: depthai.ADatatype)depthai.RawBuffer
getSpatialLocations(self: depthai.SpatialLocationCalculatorData) → List[depthai.SpatialLocations]

Retrieve configuration data for SpatialLocationCalculatorData.

Returns

Vector of spatial location data, carrying spatial information (X,Y,Z)

setData(*args, **kwargs)

Overloaded function.

  1. setData(self: depthai.Buffer, arg0: List[int]) -> None

Parameter data:

Copies data to internal buffer

  1. setData(self: depthai.Buffer, arg0: numpy.ndarray[numpy.uint8]) -> None

Parameter data:

Copies data to internal buffer

class dai::SpatialLocationCalculatorData : public dai::Buffer

SpatialLocationCalculatorData message. Carries spatial information (X,Y,Z) and their configuration parameters

Public Functions

SpatialLocationCalculatorData()

Construct SpatialLocationCalculatorData message.

SpatialLocationCalculatorData(std::shared_ptr<RawSpatialLocations> ptr)
~SpatialLocationCalculatorData() = default
std::vector<SpatialLocations> &getSpatialLocations() const

Retrieve configuration data for SpatialLocationCalculatorData.

Return

Vector of spatial location data, carrying spatial information (X,Y,Z)

Public Members

std::vector<SpatialLocations> &spatialLocations

Private Functions

std::shared_ptr<RawBuffer> serialize() const override

Private Members

RawSpatialLocations &rawdata

Got questions?

We’re always happy to help with code or other questions you might have.