GetResultWithUniqueId

Function Usage

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

This API must be used together with SendDataWithUniqueId. Otherwise, data stacking may occur.

Prototype

1
MxstDataOutput* MxStreamManager::GetResultWithUniqueId(const std::string& streamName, uint64_t uniqueId, unsigned int timeOutInMs = DELAY_TIME);

Parameters

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).

Response Parameters

Data Structure

Description

MxstDataOutput

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