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

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

Parameters

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

Response Parameters

Data Structure

Description

shared_ptr<void>

Smart pointer for storing metadata