图像流 / 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) |
required |
port
|
int
|
UDP端口号 |
required |
imageData
|
streaming
|
图像流数据 |
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) |
required |
port
|
int
|
UDP端口号 |
required |
cb
|
function
|
图像流回调函数,格式:cb(imageData) |
required |
Returns:
| Type | Description |
|---|---|
bool
|
executive outcome: success/faile |