生成静态端口信息,该端口可以是输入或输出端口
static void MxPluginBase::GenerateStaticPortsInfo(PortDirection direction, const std::vector<std::vector<std::string>>& portsDesc, MxpiPortInfo& portInfo);
参数名 |
说明 |
---|---|
direction |
声明输入或输出端口。
typedef enum { INPUT_PORT, OUTPUT_PORT, } PortDirection; |
portsDesc |
端口描述信息。 vector容器的size范围为:[1, 1024]。 |
portInfo |
端口信息,请参见MxpiPortInfo。 portInfo.portNum范围为:[0, 1024]。 |