XLinkOut
如何放置
Python
Python
1pipeline = dai.Pipeline()
2xlinkOut = 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)功能示例
参考
class
depthai.node.XLinkOut(depthai.Node)
method
getFpsLimit(self) -> float: floatGet rate limit in messages per second
method
getMetadataOnly(self) -> bool: boolGet whether to transfer only messages attributes and not buffer data
method
getStreamName(self) -> str: strGet stream name
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 官网 获取技术支持或解答您的任何疑问。