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
1 | static void MxPluginBase::GenerateDynamicInputPortsInfo(const std::vector<std::vector<std::string>>& portsDesc, MxpiPortInfo& inputPortInfo); |
Parameters
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. The size range of the vector container is [1, 1024]. |
inputPortInfo |
Output parameter, which contains the input port information. The value range of inputPortInfo.portNum is [0, 1024]. |
Parent topic: MxPluginBase