VpcBatchCrop
Function Usage
Implements batch image cropping. Before calling this API, call Init() or Init(MxbaseDvppChannelMode dvppChannelMode) to initialize this function.
Prototype
APP_ERROR VpcBatchCrop (
DvppDataInfo& inputDataInfo ,
std::vector<DvppDataInfo>& outputDataInfoVec ,
std::vector<CropRoiConfig>& cropConfigVec
);
APP_ERROR VpcBatchCrop (
std::vector<DvppDataInfo>& inputDataInfoVec ,
std::vector<DvppDataInfo>& outputDataInfoVec ,
std::vector<CropRoiConfig>& cropConfigVec
);
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
inputDataInfo |
Input |
Data to be cropped |
inputDataInfoVec |
Input |
Data to be cropped, which is an array |
outputDataInfoVec |
Output |
Output data after cropping, which is an array The length cannot be 0. |
cropConfigVec |
Input |
Image cropping configuration, which is an array The length must be the same as that of outputDataInfoVec. 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. |
Parent topic: DvppWrapper