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<TextObjDetectInfo> &textObjInfos, const bool useMpPictureCrop, MxBase::PostImageInfo postImageInfo);
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
featLayerData |
Input |
Output feature data array. |
textObjInfos |
Output |
Output information such as object coordinates and confidence level. |
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 image and the resized image cannot exceed 8192, and the object frame coordinates cannot be less than 0 or be greater than 8192. |
Return Parameter Description
Data Structure |
Description |
|---|---|
APP_ERROR |
Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file. |