GetMetadataWithType

Function Usage

Obtains the metadata corresponding to the key from MxpiBuffer and verify the metadata type. If the type does not match, an error is printed and a null pointer is returned. This method is used only for plugin development.

Prototype

std::shared_ptr<void> GetMetadataWithType(const std::string& key, std::string type);

Parameter Description

Parameter

Description

key

Key name of the metadata to be mounted to the buffer

type

Name of the protobuf type to be verified, for example, MxpiVisionList

Return Parameter Description

Data Structure

Description

shared_ptr<void>

Smart pointer for storing metadata