coordinates_mapper
最后更新
depthai_nodes.node.coordinates_mapper类
CoordinatesMapper
MessageGroup、Collection 和 GatheredData 项在递归重新映射时保留容器时间戳和序列号。GatheredData.reference_data 保持不变。支持的叶消息是 remap_message 接受的消息;它们必须公开 getTransformation()。没有源变换的消息将保持不变。注意
此临时主机节点旨在由 DepthAI 的
ImageAlign 节点中的等效功能取代。RuntimeError: 如果在 RVC2 上构建,或者在处理开始时目标消息没有可用的变换。TypeError: 如果具有源变换的叶消息类型不受支持。
方法
init
Python
1def __init__(self):ValueError: 如果管道设备平台没有配置图像帧格式。
build
Python
1def build(toTransformationInput: dai.Node.Output, fromTransformationInput: dai.Node.Output) -> CoordinatesMapper:toTransformationInput(dai.Node.Output): 提供消息的流,其变换定义目标参考帧。fromTransformationInput(dai.Node.Output): 提供消息的流,其坐标应重新映射。
CoordinatesMapper: 配置的节点实例。
run
Python
1def run(self):