ON THIS PAGE

  • Remapping
  • Examples of functionality
  • Reference

SpatialImgDetections

Similar to ImgDetections, but this message includes XYZ coordinates of the detected objects as well.

Remapping

SpatialImgDetections is transformable, which means it can be remapped into another frame's coordinate system. See Remapping transformable messages for details.

Examples of functionality

Reference

class

dai::SpatialImgDetections

#include SpatialImgDetections.hpp
variable
LengthUnit unit
Length unit used by all imgDetections'
variable
std::optional< ImgTransformation > transformation
function
~SpatialImgDetections()
function
void serialize(std::vector< std::uint8_t > & metadata, DatatypeEnum & datatype)
inline function
DatatypeEnum getDatatype()
function
SpatialImgDetections transformTo(const ImgTransformation & target)
Returns a new SpatialImgDetections message with the spatial detections transformed into the target image transformation.For each detection, the bounding box is assumed to lie on a plane parallel to the image plane at depth
Parameters
  • target: Target image transformation.
Returns
SpatialImgDetections with transformed detections.
function
DEPTHAI_SERIALIZE(SpatialImgDetections, sequenceNum, ts, tsDevice, detections, transformation, segmentationMaskWidth, segmentationMaskHeight, unit)

Need assistance?

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