SpatialLocationCalculatorConfig¶
This message is used to configure the SpatialLocationCalculator node.
Examples of functionality¶
Reference¶
-
class
depthai.
SpatialLocationCalculatorConfig
SpatialLocationCalculatorConfig message. Carries ROI (region of interest) and threshold for depth calculation
-
addROI
(self: depthai.SpatialLocationCalculatorConfig, ROI: depthai.SpatialLocationCalculatorConfigData) → None Add a new ROI to configuration data.
- Parameter
roi
: Configuration parameters for ROI (region of interest)
- Parameter
-
getConfigData
(self: depthai.SpatialLocationCalculatorConfig) → List[depthai.SpatialLocationCalculatorConfigData] Retrieve configuration data for SpatialLocationCalculator
- Returns
Vector of configuration parameters for ROIs (region of interests)
-
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
-
setData
(*args, **kwargs) Overloaded function.
setData(self: depthai.Buffer, arg0: List[int]) -> None
- Parameter
data
: Copies data to internal buffer
setData(self: depthai.Buffer, arg0: numpy.ndarray[numpy.uint8]) -> None
- Parameter
data
: Copies data to internal buffer
-
setROIs
(self: depthai.SpatialLocationCalculatorConfig, ROIs: List[depthai.SpatialLocationCalculatorConfigData]) → None Set a vector of ROIs as configuration data.
- Parameter
ROIs
: Vector of configuration parameters for ROIs (region of interests)
- Parameter
-
-
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)
Private Members
-
Got questions?
We’re always happy to help with code or other questions you might have.