GetResultSP
函数功能
获得Stream上的输出元件的结果(appsink)。阻塞式,不支持多线程并发。
函数原型
std::shared_ptr<MxstDataOutput> MxStreamManager::GetResultSP(const std::string& streamName, int outPluginId,const uint32_t& msTimeOut = DELAY_TIME);
参数说明
| 参数名 | 输入/输出 | 说明 | 
|---|---|---|
| streamName | 输入 | 流的名称。 | 
| outPluginId | 输入 | 流上的输出插件ID,即appsink元件的编号。 | 
| msTimeOut | 输入 | 最长等待时间,单位毫秒,默认为3000ms(3秒)。 | 
返回参数说明
| 数据结构 | 说明 | 
|---|---|
| std::shared_ptr<MxstDataOutput> | 推理服务输出数据请参见MxstDataOutput。 | 
父主题: MxStreamManager