VpcBatchCropMN

Function Usage

Batch cropping function for image processing. Before calling this API, call Init to initialize this function.

Prototype

1
APP_ERROR DvppWrapper::VpcBatchCropMN(std::vector<DvppDataInfo>& inputDataInfoVec, std::vector<DvppDataInfo>& outputDataInfoVec, std::vector<CropRoiConfig>& cropConfigVec, AscendStream& stream);
1
APP_ERROR DvppWrapper::VpcBatchCropMN(std::vector<DvppDataInfo>& inputDataInfoVec,  std::vector<DvppDataInfo>& outputDataInfoVec, std::vector<CropRoiConfig>& cropConfigVec);

Parameters

Parameter

Input/Output

Description

inputDataInfoVec

Input

A group of data to be cropped. The array length cannot exceed 12 characters.

outputDataInfoVec

Output

A group of data output after image cropping.

The length is not 0, but the product of inputDataInfoVec and cropConfigVec. The array length cannot exceed 256 characters.

cropConfigVec

Input

Cropping configuration group. The array length cannot exceed 256 characters. For details, see CropRoiConfig.

stream

Input

AscendStream type. When AscendStream& stream is not specified or the value is AscendStream::DefaultStream(), the API performs a synchronous operation. In other cases, the API performs asynchronous operations.

Response Parameters

Data Structure

Description

APP_ERROR

For details about the returned error codes, see APP_ERROR Description.