GetResultSP

Function Usage

Obtains the result of the output element (appsink) on the stream. The blocking mode is used. Multi-thread concurrency is not supported.

Prototype and Parameter Description

std::shared_ptr<MxstDataOutput> GetResultSP(const std::string& streamName, int outPluginId,const uint32_t& msTimeOut = DELAY_TIME);

Parameter

Input/Output

Description

streamName

Input

Stream name

outPluginId

Input

ID of the output plugin on the stream, that is, the ID of the appsink element

msTimeOut

Input

Maximum waiting time, in milliseconds. The default value is 3000 ms (3s).

Return Parameter Description

Data Structure

Description

std::shared_ptr<MxstDataOutput>

Inference service output data. See MxstDataOutput.