GetProtobuf
Function Usage
Obtains the protobuf result of the output element on the stream and send it to appsink. appsink obtains the data in the queue in block mode. If the queue is empty, the data is blocked. Multi-thread concurrency is not supported. For details about the sample code, see SendProtobuf-GetProtobuf Sample Code.
Prototype
std::vector<MxstProtobufOut> GetProtobuf(const std::string& streamName, int outPluginId, const std::vector<std::string>& keyVec);
Parameter Description
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 |
Sends the key of the protobuf to be obtained and obtain the corresponding protobuf result based on the key. The memory is managed by the smart pointer and does not need to be destroyed. |
Return Parameter Description
Data Structure |
Description |
|---|---|
std::vector<MxstProtobufOut> |
For details about the output data list of the inference service, see MxstProtobufOut. |