GetResultWithUniqueIdSP
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.
Prototype
1 | std::shared_ptr<MxstDataOutput> MxStreamManager::GetResultWithUniqueIdSP(const std::string& streamName, uint64_t uniqueId, uint32_t timeOutMs = 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. |
timeOutMs |
Input |
Maximum waiting time, in milliseconds. The default value is 3000 ms (3s). |
Response Parameters
Data Structure |
Description |
|---|---|
std::shared_ptr<MxstDataOutput> |
For details about the output data of the inference service, see MxstDataOutput. |
Parent topic: MxStreamManager