图像流 / 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
参数:
| 名称 | 类型 | 描述 | 默认 |
|---|---|---|---|
ip
|
string
|
UDP IP地址(SimOneAPI所在机器的IP) |
必需 |
port
|
int
|
UDP端口号 |
必需 |
imageData
|
streaming
|
图像流数据 |
必需 |
返回:
| 类型 | 描述 |
|---|---|
bool
|
executive outcome: success/faile |
SimOneStreamingAPI.SoApiSetStreamingImageUpdateCB(ip, port, cb)
¶
获取图像数据回调
Register the callback func for applying image streaming data
参数:
| 名称 | 类型 | 描述 | 默认 |
|---|---|---|---|
ip
|
string
|
UDP IP地址(SimOneAPI所在机器的IP) |
必需 |
port
|
int
|
UDP端口号 |
必需 |
cb
|
function
|
图像流回调函数,格式:cb(imageData) |
必需 |
返回:
| 类型 | 描述 |
|---|---|
bool
|
executive outcome: success/faile |