GetMultiResultWithUniqueId

Function Usage

Obtains the results (appsink) of multiple output elements on the stream. The blocking mode is used. Multi-thread concurrency and multi-output are supported. Use uniqueId to ensure that the result can be correctly obtained in multi-thread scenarios.

Prototype

std::vector<MxstDataOutput*> GetMultiResultWithUniqueId(const std::string& streamName, uint64_t uniqueId, unsigned int timeOutInMs = DELAY_TIME);

Parameter Description

Parameter

Input/Output

Description

streamName

Input

Stream name

uniqueId

Input

ID returned after data is sent (returned by the 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::vector<MxstDataOutput*>

Output data of the inference service (see 5.4.1.4 MxstDataOutput). The memory needs to be deleted.