用于实现批量抠图功能,调用该接口前必须调用Init接口来实现该功能的初始化。
1 | APP_ERROR DvppWrapper::VpcBatchCrop(DvppDataInfo& inputDataInfo, std::vector<DvppDataInfo>& outputDataInfoVec, std::vector<CropRoiConfig>& cropConfigVec, AscendStream& stream); |
1 | APP_ERROR DvppWrapper::VpcBatchCrop(DvppDataInfo& inputDataInfo, std::vector<DvppDataInfo>& outputDataInfoVec, std::vector<CropRoiConfig>& cropConfigVec); |
1 | APP_ERROR DvppWrapper::VpcBatchCrop(std::vector<DvppDataInfo>& inputDataInfoVec, std::vector<DvppDataInfo>& outputDataInfoVec, std::vector<CropRoiConfig>& cropConfigVec, AscendStream& stream); |
1 | APP_ERROR DvppWrapper::VpcBatchCrop(std::vector<DvppDataInfo>& inputDataInfoVec, std::vector<DvppDataInfo>& outputDataInfoVec, std::vector<CropRoiConfig>& cropConfigVec); |
参数名 |
输入/输出 |
说明 |
---|---|---|
inputDataInfo |
输入 |
待抠图的数据。 |
inputDataInfoVec |
输入 |
待抠图的一组数据。 |
outputDataInfoVec |
输出 |
抠图后输出的一组数据。长度不为0。 |
cropConfigVec |
输入 |
抠图配置组。长度要求与outputDataInfoVec一致。数组中单个配置要求和VpcCrop方法的cropConfig一致。具体请参见CropRoiConfig。 |
stream |
输入 |
AscendStream类型,当不输入AscendStream& stream或者参数值为“AscendStream::DefaultStream()”时,接口为同步操作,其他情况下,接口为异步操作。 |
数据结构 |
说明 |
---|---|
APP_ERROR |
程序执行返回的错误码,请参考APP_ERROR说明。 |