Process

Function Usage

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

Prototype

virtual 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 level.

The coordinate range of a single output object is [0, 8192]. The value of object types cannot be less than 0.

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). The heights and widths of the original and resized images cannot exceed 8192, and the coordinate range of the object frame is [0, 8192].

Return Parameter Description

Data Structure

Description

APP_ERROR

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