AddProtoMetadata
Function Usage
Mounts proto metadata to MxpiBuffer and add data to the serialization plugin.
Before calling this API, ensure that the content to which the metadata pointer points is ready and will not be modified.
Prototype
1 | APP_ERROR MxpiMetadataManager::AddProtoMetadata(const std::string& key, std::shared_ptr<void> metadata); |
Parameters
Parameter |
Description |
|---|---|
key |
Key name of the proto metadata to be mounted to the buffer. ReserveMetadataGraph and ReservedVisionList are reserved fields and cannot be set. |
metadata |
Proto metadata to be mounted to the buffer. The metadata must be a smart pointer of the protobuf message type. Otherwise, the program may be abnormal. |
Response Parameters
Data Structure |
Description |
|---|---|
APP_ERROR |
For details about the returned error codes, see APP_ERROR Description. |
Parent topic: MxpiMetadataManager