Skip to content

图像流 / Image Stream

说明 / Overview

摄像头原始图像帧的获取接口,支持主动查询和回调注册两种方式。
Interfaces for retrieving raw camera image frames, supporting both active query and callback registration.

SimOneStreamingAPI.SoGetStreamingImage(ip, port, imageData)

获取图像数据

Get image streaming data

Parameters:

Name Type Description Default
ip string

UDP IP地址(SimOneAPI所在机器的IP)
UDP ip, the machine which SimOneAPI running on

required
port int

UDP端口号
UDP port

required
imageData streaming

图像流数据
image streaming data

required

Returns:

Type Description
bool

executive outcome: success/faile

SimOneStreamingAPI.SoApiSetStreamingImageUpdateCB(ip, port, cb)

获取图像数据回调

Register the callback func for applying image streaming data

Parameters:

Name Type Description Default
ip string

UDP IP地址(SimOneAPI所在机器的IP)
UDP ip, the machine which SimOneAPI running on

required
port int

UDP端口号
UDP port

required
cb function

图像流回调函数,格式:cb(imageData)
callback func for applying image streaming data: cb(imageData)

required

Returns:

Type Description
bool

executive outcome: success/faile