SpatialLocationCalculatorConfig

This message is used to configure the SpatialLocationCalculator node.

Examples of functionality

Reference

class depthai.SpatialLocationCalculatorConfig
addROI(self: depthai.SpatialLocationCalculatorConfig, ROI: depthai.SpatialLocationCalculatorConfigData)None
get(self: depthai.SpatialLocationCalculatorConfig) → dai::RawSpatialLocationCalculatorConfig
getConfigData(self: depthai.SpatialLocationCalculatorConfig)list[depthai.SpatialLocationCalculatorConfigData]
getData(self: object) → numpy.ndarray[numpy.uint8]
getRaw(self: depthai.ADatatype)depthai.RawBuffer
getSequenceNum(self: depthai.Buffer)int
getTimestamp(self: depthai.Buffer)datetime.timedelta
getTimestampDevice(self: depthai.Buffer)datetime.timedelta
set(self: depthai.SpatialLocationCalculatorConfig, config: dai::RawSpatialLocationCalculatorConfig)depthai.SpatialLocationCalculatorConfig
setData(*args, **kwargs)

Overloaded function.

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

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

setROIs(self: depthai.SpatialLocationCalculatorConfig, ROIs: list[depthai.SpatialLocationCalculatorConfigData])None
setSequenceNum(self: depthai.Buffer, arg0: int)depthai.Buffer
setTimestamp(self: depthai.Buffer, arg0: datetime.timedelta)depthai.Buffer
setTimestampDevice(self: depthai.Buffer, arg0: datetime.timedelta)depthai.Buffer
class dai::SpatialLocationCalculatorConfig : public dai::Buffer

SpatialLocationCalculatorConfig message. Carries ROI (region of interest) and threshold for depth calculation

Public Functions

SpatialLocationCalculatorConfig()

Construct SpatialLocationCalculatorConfig message.

SpatialLocationCalculatorConfig(std::shared_ptr<RawSpatialLocationCalculatorConfig> ptr)
~SpatialLocationCalculatorConfig() = default
void setROIs(std::vector<SpatialLocationCalculatorConfigData> ROIs)

Set a vector of ROIs as configuration data.

Parameters
  • ROIs: Vector of configuration parameters for ROIs (region of interests)

void addROI(SpatialLocationCalculatorConfigData &ROI)

Add a new ROI to configuration data.

Parameters
  • roi: Configuration parameters for ROI (region of interest)

std::vector<SpatialLocationCalculatorConfigData> getConfigData() const

Retrieve configuration data for SpatialLocationCalculator

Return

Vector of configuration parameters for ROIs (region of interests)

SpatialLocationCalculatorConfig &set(dai::RawSpatialLocationCalculatorConfig config)

Set explicit configuration.

Parameters
  • config: Explicit configuration

dai::RawSpatialLocationCalculatorConfig get() const

Retrieve configuration data for SpatialLocationCalculator.

Return

config for SpatialLocationCalculator

Private Functions

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

Got questions?

Head over to Discussion Forum for technical support or any other questions you might have.