DepthAI v2 has been superseded by DepthAI v3. You are viewing legacy documentation.

本页目录

  • 如何放置
  • 输入和输出
  • 使用方式
  • 功能示例
  • 参考

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

需要帮助?

请前往 OAKChina 官网 获取技术支持或解答您的任何疑问。