GetProtobuf
Function Usage
Obtains the protobuf data of the output element appsink on the stream in a blocking queue. If there is no data to be obtained, the data is blocked. To use the API, run pip3 install protobuf-4.25.1 command to install protobuf 4.25.1.
Prototype
1 2 | def GetProtobuf(streamName: bytes, outPluginId: int, keyVec: list) -> list : pass |
Input Parameters
Parameter |
Type |
Description |
|---|---|---|
streamName |
bytes |
Stream name. |
outPluginId |
int |
ID of the output plugin, that is, the ID of the appsink element. |
keyVec |
bytes list |
Key of the protobuf data and the corresponding protobuf data obtained based on the key. The memory is managed by the smart pointer and does not need to be destroyed. |
Response Parameters
Data Structure |
Description |
|---|---|
MxProtobufOut list |
Protobuf data output by the inference service. The value of protobuf needs to be deserialized to the corresponding structure. For details, see MxProtobufOut. |
Parent topic: StreamManagerApi