SendPacket

Function Usage

Template function, which sends data to the input element (appsrc) on the specified stream.

Currently, the supported input data includes Packet<MxstDataInput>, Packet<MxVisionList>, Packet<MxTensorPackageList>, Packet<MxObjectList>, Packet<MxClassList>, Packet<MxImageMaskList>, Packet<MxPoseList>, Packet<MxTextObjectList>, and Packet<MxTextsInfoList>.

Prototype

template <class T>
APP_ERROR SendPacket(Packet<T>& packet, const std::string& streamName, const std::string& elementName)

Parameter Description

Parameter

Input/Output

Description

packet

Input

Packet data

streamName

Input

Stream name

elementName

Input

Element name

Return Parameter Description

Data Structure

Description

APP_ERROR

Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file.