Process
Function Usage
Performs inference post-processing.
Prototype
APP_ERROR Process(std::shared_ptr<void>& metaDataPtr, MxBase::PostProcessorImageInfo postProcessorImageInfo,
std::vector<MxTools::MxpiMetaHeader>& headerVec, std::vector<std::vector<MxBase::BaseTensor>>& tensors,
MxBase::ObjectPostProcessorBase& postProcessorInstance_);
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
metaDataPtr |
Output |
Pointer to the data structure corresponding to the post-processing result of the inference model. The data structure is defined by protobuf, for example, MxpiObjectList. The pointer is used to transmit data to the downstream plugin. |
postProcessorImageInfo |
Input |
Image information (including the heights and widths of the original image and the resized image, and the coordinates of the object frame). |
headerVec |
Input |
Upstream data information on which the model inference output data depends. |
tensors |
Input |
Model inference output tensor. |
postProcessorInstance_ |
Input |
Post-processing object. |
Return Parameter Description
Data Structure |
Description |
|---|---|
APP_ERROR |
Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file. |