GenerateStaticPortsInfo

Function Usage

Generates static port information. The port can be an input or output port.

Prototype

static void GenerateStaticPortsInfo(PortDirection direction, const std::vector<std::vector<std::string>>& portsDesc, MxpiPortInfo& portInfo);

Parameter Description

Parameter

Description

direction

Declares the input or output port.
typedef enum {
INPUT_PORT,
OUTPUT_PORT,
} PortDirection;

portsDesc

Port description.

portInfo

Port information. For details, see MxpiPortInfo.