GenerateDynamicInputPortsInfo

Function Usage

Generates dynamic input port information, including the number of ports and port format. Dynamic ports are dynamically created based on the number specified in the configuration file. The format of each dynamic port is the same.

Prototype

static void GenerateDynamicInputPortsInfo(const std::vector<std::vector<std::string>>& portsDesc, MxpiPortInfo& inputPortInfo);

Parameter Description

Parameter

Description

portsDesc

Port description. Only one type of dynamic port can be registered. For example, {{"metadata/class"}} indicates that only ports of the class format can be registered.

inputPortInfo

Output parameter, which contains the input port information.