Obtains the protobuf result of the output element on the stream and send it to appsink. appsink obtains the data in the queue in blocking mode. If the queue is empty, the data is blocked. Multi-thread concurrency is not supported.
This API must be used together with SendProtobuf. Otherwise, data stacking may occur.
1 | std::vector<MxstProtobufOut> MxStreamManager::GetProtobuf(const std::string& streamName, int outPluginId, const std::vector<std::string>& keyVec); |
Parameter |
Input/Output |
Description |
|---|---|---|
streamName |
Input |
Stream name. |
outPluginId |
Input |
ID of the object output plugin, that is, the ID of the appsrc element |
keyVec |
Input |
Key of the protobuf to be obtained. The corresponding protobuf result is obtained based on the key. The memory is managed by the smart pointer and does not need to be released. |
Data Structure |
Description |
|---|---|
std::vector<MxstProtobufOut> |
For details about the output data list of the inference service, see MxstProtobufOut. |