此页面由 AI 自动翻译。查看英文原版
最后更新

本页目录

  • 重映射
  • 功能示例
  • 参考
Claude CodeCodexCursor
Luxonis 智能体工具包为你常用的编程智能体加载 Luxonis 上下文与技能,更快地基于 OAK 开发应用。
安装工具包
最后更新
Tracklets 由 ObjectTracker 节点生成。它们提供检测对象的跟踪信息,包括 ROI、跟踪 ID、标签、年龄和状态。当跟踪器接收到带有空间数据的检测时,每个跟踪器还携带 spatialCoordinates(X/Y/Z,单位为毫米)。velocity 和 speed 是可选的 3D 估计值,单位为米/秒,当没有有效的空间状态可用时(例如仅 RGB 跟踪),它们为空。

重映射

Tracklets 是可转换的,这意味着它可以重映射到另一个帧的坐标系中。有关详细信息,请参阅 重映射可转换消息。

功能示例

参考

class

dai::Tracklets

#include Tracklets.hpp
variable
LengthUnit unit
Measurement unit used by all tracklets' spatialCoordinates in this list.
variable
std::vector< Tracklet > tracklets
Retrieve data for Tracklets.
Returns
Vector of object tracker data, carrying tracking information.
variable
int64_t sequenceNum
variable
variable
Timestamp tsDevice
variable
std::optional< Timestamp > tsSystem
variable
std::optional< ImgTransformation > transformation
function
Tracklets()
Construct Tracklets message.
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 tracklet.spatialCoordinates.z (that is, all four bounding-box corners are projected using the same depth value). The transformed corners are then fit with the smallest enclosing rotated rectangle to preserve rectangularity.
Parameters
  • target: Target image transformation.
function
void serialize(std::vector< std::uint8_t > & metadata, DatatypeEnum & datatype)
inline function
DatatypeEnum getDatatype()
Get the datatype of this specific message.
Returns
DatatypeEnum
function
DEPTHAI_SERIALIZE(Tracklets, tracklets, transformation, ts, tsDevice, tsSystem, sequenceNum, unit)
function
std::optional< ImgTransformation > getTransformation()
Returns the current transformation if set, else std::nullopt.
function
void setTransformation(const ImgTransformation & transformation)
Sets the current transformation.

需要帮助?

请访问讨论论坛以获取技术支持或您可能有的任何其他问题。