Tracklets
Tracklets
spatialCoordinates (X/Y/Z in mm). velocity and speed are optional 3D estimates in m/s and are empty when no valid spatial state is available, such as RGB-only tracking.Remapping
Tracklets 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::Tracklets
variable
LengthUnit unit
Measurement unit used by all tracklets'
variable
std::vector< Tracklet > tracklets
variable
int64_t sequenceNum
variable
Timestamp ts
variable
Timestamp tsDevice
variable
std::optional< ImgTransformation > transformation
function
Tracklets()function
~Tracklets()function
Tracklets transformTo(const ImgTransformation & target)Returns a new Tracklets message with the tracklets transformed into the target image transformation.For each tracklet, the bounding box is assumed to lie on a plane parallel to the image plane at depth
Parameters
- target: Target image transformation.
function
void serialize(std::vector< std::uint8_t > & metadata, DatatypeEnum & datatype)function
function
std::optional< ImgTransformation > getTransformation()Returns the current transformation if set, else std::nullopt.
function
void setTransformation(const ImgTransformation & transformation)Sets the current transformation.
Need assistance?
Head over to Discussion Forum for technical support or any other questions you might have.