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.
setData(self: depthai.Buffer, arg0: list[int]) -> None
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
() = 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 Members
-