Init

Function Usage

Plugin initialization method. This method needs to be rewritten for custom plugins to apply for resources in this method.

Prototype

virtual APP_ERROR Init(std::map<std::string, std::shared_ptr<void>>& configParamMap) = 0;

Parameter Description

Parameter

Description

configParamMap

Configuration parameter. After streaming, the parameters in the configuration file are transferred through this variable.

Return Parameter Description

Data Structure

Description

APP_ERROR

Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file.