MxpiPortInfo
Function
It is a plugin configuration port definition template. 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.
Structure Definition
typedef struct {
int portNum = 0;
std::vector<std::vector<std::string>> portDesc;
PortDirection direction;
std::vector<PortTypeDesc> types;
} MxpiPortInfo;
Parameter Description
Parameter |
Description |
|---|---|
portNum |
Number of ports of the plugin. The default value is 0. |
portDesc |
Port description. For details, see Table 3. |
direction |
Defines the input or output direction of a port. The enumerated values are INPUT_PORT and OUTPUT_PORT. |
types |
Port type. Currently, only STATIC is supported. |
Parent topic: Data Structure