XLinkIn
XLinkIn
如何放置
Python
Python
1pipeline = dai.Pipeline()
2xlinkIn = pipeline.create(dai.node.XLinkIn)输入和输出
用法
Python
Python
1pipeline = dai.Pipeline()
2xIn = pipeline.create(dai.node.XLinkIn)
3xIn.setStreamName("camControl")
4
5# 提前创建 ColorCamera
6xIn.out.link(cam.inputControl)
7
8with dai.Device(pipeline) as device:
9 device.startPipeline()
10 qCamControl = device.getInputQueue("camControl")
11
12 # 发送消息给 ColorCamera 以捕获静态图像
13 ctrl = dai.CameraControl()
14 ctrl.setCaptureStill(True)
15 qCamControl.send(ctrl)功能示例
参考
class
depthai.node.XLinkIn(depthai.Node)
method
getMaxDataSize(self) -> int: intGet maximum messages size in bytes
method
getNumFrames(self) -> int: intGet number of frames in pool
method
getStreamName(self) -> str: strGet stream name
method
setMaxDataSize(self, maxDataSize: typing.SupportsInt)Set maximum message size it can receive Parameter ``maxDataSize``: Maximum size in bytes
method
setNumFrames(self, numFrames: typing.SupportsInt)Set number of frames in pool for sending messages forward Parameter ``numFrames``: Maximum number of frames in pool
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
out
Outputs message of same type as send from host.
需要帮助?
请前往 Discussion Forum 获取技术支持或提出您可能有的任何其他问题。