GetResultWithUniqueIdSP

Function Usage

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

Prototype

std::shared_ptr<MxstDataOutput> GetResultWithUniqueIdSP(const std::string& streamName, uint64_t uniqueId, uint32_t timeOutInMs = DELAY_TIME);

Parameter Description

Parameter

Input/Output

Description

streamName

Input

Stream name

uniqueId

Input

ID returned after data is sent (returned by the 5.4.2.1.6 SendDataWithUniqueId API). The corresponding result is obtained based on the ID.

timeOutInMs

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 5.4.1.4 MxstDataOutput.