AddMetadata
Function Usage
Mounts metadata to MxpiBuffer to transfer structured data between plugins.
Prototype
APP_ERROR AddMetadata(const std::string& key, std::shared_ptr<void> metadata);
Parameter Description
Parameter |
Description |
|---|---|
key |
Key name of the metadata to be mounted to the buffer. |
metadata |
Metadata to be mounted to the buffer. |
Return Parameter Description
Data Structure |
Description |
|---|---|
APP_ERROR |
Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file. |
Parent topic: MxpiMetadataManager