DepthAI v2 has been superseded by DepthAI v3. You are viewing legacy documentation.
此页面由 AI 自动翻译。查看英文原版
最后更新

本页目录

  • 创建 MessageGroup
  • 参考
Claude CodeCodexCursor
Luxonis 智能体工具包为你常用的编程智能体加载 Luxonis 上下文与技能,更快地基于 OAK 开发应用。
安装工具包

MessageGroup

最后更新
MessageGroup 消息类型是一个多功能容器,用于 DepthAI 管道中,将任意 DepthAI 消息映射分组在一起。它作为 Sync 节点的主要输出,有效地同步各种输入流,并作为 MessageDemux 节点的输入,用于后续的分解和处理。

创建 MessageGroup

MessageGroup 可以由 Sync 节点自动创建,因为它根据时间戳对来自不同源的消息进行对齐和分组。或者,它可以在主机应用程序中或在 Script 节点中手动构建,以创建 DepthAI 消息的自定义分组。

参考

class

depthai.MessageGroup(depthai.Buffer)

method
method
method
method
method
getIntervalNs(self) -> int: int
Retrieves interval between the first and the last message in the group.
method
getMessageNames(self) -> list[str]: list[str]
Gets the names of messages in the group
method
method
getSequenceNum(self) -> int: int
Retrieves sequence number
method
getTimestamp(self) -> datetime.timedelta: datetime.timedelta
Retrieves timestamp related to dai::Clock::now()
method
getTimestampDevice(self) -> datetime.timedelta: datetime.timedelta
Retrieves timestamp directly captured from device's monotonic clock, not synchronized to host time. Used mostly for debugging
method
isSynced(self, arg0: typing.SupportsInt) -> bool: bool
True if all messages in the group are in the interval  Parameter ``thresholdNs``:     Maximal interval between messages
method
method
method

需要帮助?

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