Defines the template for plugin configuration port definitions. You can rewrite the DefineInputPorts and DefineOutputPorts APIs of the plugin to define the input and output ports. By default, the input and output ports are the same.
1 2 3 4 5 6 | typedef struct { int portNum = 0; std::vector<std::vector<std::string>> portDesc; PortDirection direction; std::vector<PortTypeDesc> types; } MxpiPortInfo; |
Parameter |
Description |
|---|---|
portNum |
Number of ports of the plugin. The default value is 0. |
portDesc |
Port description. For details, see Table 3. |
direction |
Input or output direction of a port. The enumerated values are INPUT_PORT and OUTPUT_PORT. |
types |
Port type (PortTypeDesc). Currently, only STATIC is supported. |