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

本页目录

  • 创建 MessageGroup
  • 参考

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

需要帮助?

请前往 Discussion Forum 获取技术支持或提出您可能有的任何其他问题。