图像流 Image Stream¶
GetStreamingImage¶
bool GetStreamingImage(const char *ip, unsigned short port, SimOne_Streaming_Image *pImage)
获得物理级摄像头图像数据.
Retrieve image data from streaming based camera.
参数:
| 名称 | 类型 | 说明 |
|---|---|---|
ip |
const char * |
物理级摄像头UDP输出IP地址 UDP IP which the streaming image send to |
port |
unsigned short |
物理级摄像头UDP输出端口号 UDP Port which the streaming image send to |
pImage |
SimOne_Streaming_Image * |
仿真图像数据 Image data |
返回值:
| 类型 | 说明 |
|---|---|
bool |
如果成功获取到仿真图像数据,则返回true,否则返回false Returns true if the image data is successfully retrieved, false otherwise |
SetStreamingImageUpdateCB¶
bool SetStreamingImageUpdateCB(const char *ip, unsigned short port, void(*cb)(SimOne_Streaming_Image *pImage))
获得物理级摄像头图像数据更新回调.
Callback for Updates on image data from streaming based camera.
参数:
| 名称 | 类型 | 说明 |
|---|---|---|
ip |
const char * |
物理级摄像头UDP输出IP地址 UDP IP which the streaming image send to |
port |
unsigned short |
物理级摄像头UDP输出端口号 UDP Port which the streaming image send to |
cb |
void(*)(SimOne_Streaming_Image *pImage) |
获取物理级摄像头仿真图像数据的回调 Callback function for getting image data from streaming based camera. |
返回值:
| 类型 | 说明 |
|---|---|
bool |
如果注册回调函数成功,则返回true,否则返回false Returns true if the callback registration is successful, false otherwise. |