Process

Function Usage

Obtains the information about the detected object from the output data.

Prototype

APP_ERROR Process(std::vector<std::shared_ptr<void>> &featLayerData, std::vector<ObjDetectInfo> &objInfos,const bool useMpPictureCrop, MxBase::PostImageInfo postImageInfo);

Parameter Description

Parameter

Input/Output

Description

featLayerData

Input

Output feature data array.

objInfos

Output

Output information such as object coordinates, classes, and confidence.

useMpPictureCrop

Input

Whether to restore the coordinates to those of the object frame.

postImageInfo

Input

Image information (including the heights and widths of the original image and the resized image, and the coordinates of the object frame).

Return Parameter Description

Data Structure

Description

APP_ERROR

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