Process
Function Usage
Obtains the information about the detected object from the output data.
Prototype
1 | virtual APP_ERROR ObjectPostProcessorBase::Process(std::vector<std::shared_ptr<void>>& featLayerData, std::vector<ObjDetectInfo>& objInfos,const bool useMpPictureCrop, MxBase::PostImageInfo postImageInfo); |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
featLayerData |
Input |
Array of output feature data. |
objInfos |
Output |
Output information such as object coordinates, classes, and confidence. 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 bounding box. |
postImageInfo |
Input |
Image information (including the heights and widths of the source image and the resized image, and the coordinates of the bounding box). The heights and widths of the original and resized images cannot exceed 8192, and the coordinate range of the bounding box is [0, 8192]. |
Response Parameters
Data Structure |
Description |
|---|---|
APP_ERROR |
For details about the returned error codes, see APP_ERROR Description. |