VpcBatchCropResize
Function Usage
Implements batch image cropping and resizing. Before calling this API, call Init() or Init(MxbaseDvppChannelMode dvppChannelMode) to initialize this function.
Prototype
APP_ERROR VpcBatchCropResize(
DvppDataInfo& inputDataInfo,
std::vector<DvppDataInfo>& outputDataInfoVec,
std::vector<CropRoiConfig>& cropConfigVec,
ResizeConfig& resizeConfig
);
APP_ERROR VpcBatchCropResize(
DvppDataInfo& inputDataInfo,
std::vector<DvppDataInfo>& outputDataInfoVec,
std::vector<CropRoiConfig>& cropConfigVec,
std::vector<ResizeConfig>& resizeConfigVec
);
APP_ERROR VpcBatchCropResize(
std::vector<DvppDataInfo>& inputDataInfoVec,
std::vector<DvppDataInfo>& outputDataInfoVec,
std::vector<CropRoiConfig>& cropConfigVec,
std::vector<ResizeConfig>& resizeConfigVec
);
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
inputDataInfo |
Input |
Data to be cropped or resized. |
inputDataInfoVec |
Input |
Data to be cropped or resized, which is an array. The length must be the same as that of cropConfigVec. |
cropConfigVec |
Input |
Image cropping configuration, which is an array. The length cannot be 0. |
resizeConfigVec |
Input |
Image resizing configuration, which is an array. The length must be the same as that of cropConfigVec. |
outputDataInfoVec |
Output |
Output data after cropping, which is an array. The length must be the same as that of cropConfigVec. The requirement of a single configuration item in the array must be the same as that of cropConfig of VpcCrop. |
Return Parameter Description
Data Structure |
Description |
|---|---|
APP_ERROR |
Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file. |