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

本页目录

  • 如何放置它
  • 输入和输出
  • 用法
  • 功能示例
  • 参考

XLinkOut

XLinkOut 节点用于通过 XLink 将数据从设备发送到主机。

如何放置它

Python

Python
1pipeline = dai.Pipeline()
2xlinkOut = pipeline.create(dai.node.XLinkOut)

C++

C++
1dai::Pipeline pipeline;
2auto xlinkOut = pipeline.create<dai::node::XLinkOut>();

输入和输出

用法

Python

Python
1pipeline = dai.Pipeline()
2xOut = pipeline.create(dai.node.XLinkOut)
3xOut.setStreamName("camOut")
4
5# 这里我们将通过 XLink 将摄像头预览 (ImgFrame) 发送到主机。
6# 主机随后可以向用户显示帧
7cam.preview.link(xOut.input)

C++

C++
1dai::Pipeline pipeline;
2auto xOut = pipeline.create<dai::node::XLinkOut>();
3xOut->setStreamName("camOut");
4
5// 这里我们将通过 XLink 将摄像头预览 (ImgFrame) 发送到主机。
6// 主机随后可以向用户显示帧
7cam->preview.link(xOut->input);

功能示例

参考

class

depthai.node.XLinkOut(depthai.Node)

method
getFpsLimit(self) -> float: float
Get rate limit in messages per second
method
getMetadataOnly(self) -> bool: bool
Get whether to transfer only messages attributes and not buffer data
method
method
setFpsLimit(self, fpsLimit: typing.SupportsFloat)
Specifies a message sending limit. It's approximated from specified rate.  Parameter ``fps``:     Approximate rate limit in messages per second
method
setMetadataOnly(self, arg0: bool)
Specify whether to transfer only messages attributes and not buffer data
method
setStreamName(self, streamName: str)
Specifies XLink stream name to use.  The name should not start with double underscores '__', as those are reserved for internal use.  Parameter ``name``:     Stream name
property
input
Input for any type of messages to be transferred over XLink stream  Default queue is blocking with size 8

需要帮助?

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