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

本页目录

  • 如何放置
  • 输入和输出
  • 用法
  • 功能示例
  • 参考
Claude CodeCodexCursor
Luxonis 智能体工具包为你常用的编程智能体加载 Luxonis 上下文与技能,更快地基于 OAK 开发应用。
安装工具包
最后更新
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# Here we will send camera preview (ImgFrame) to the host via XLink.
6# Host can then display the frame to the user
7cam.preview.link(xOut.input)

C++

C++
1dai::Pipeline pipeline;
2auto xOut = pipeline.create<dai::node::XLinkOut>();
3xOut->setStreamName("camOut");
4
5// Here we will send camera preview (ImgFrame) to the host via XLink.
6// Host can then display the frame to the user
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

需要帮助?

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