XLinkOut
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
需要帮助?
请前往 Discussion Forum 获取技术支持或提出您可能有的任何其他问题。