vpc_crop
产品支持情况
|
产品 |
是否支持 |
|---|---|
|
|
√ |
|
|
√ |
|
|
x |
|
|
√ |
|
|
√ |
|
|
x |
功能说明
按照指定区域从一张输入图片中抠出一张或多张子图。异步接口。
函数原型
- C函数原型
1hi_s32 hi_mpi_vpc_crop(hi_vpc_chn chn, const hi_vpc_pic_info *source_pic, hi_vpc_crop_region_info crop_info[], hi_u32 count, hi_u32 *task_id, hi_s32 milli_sec);
- python函数
1task_id, ret = acl.himpi.vpc_crop(chn, source_pic, crop_info, count, milli_sec)
参数说明
|
参数名 |
说明 |
|---|---|
|
chn |
int,图片处理通道号。
|
|
source_pic |
dict,原始图片信息,具体请参见hi_vpc_pic_info,相关约束请参见约束说明。 |
|
crop_info |
list,抠图图片信息列表,长度与“count”参数值保持一致,具体请参见hi_vpc_crop_region_info。 |
|
count |
int,抠图区域的数量,取值范围[1, 256]。 |
|
milli_sec |
int,超时时间配置,单位是毫秒,取值范围如下。
|
返回值说明
|
返回值 |
说明 |
|---|---|
|
task_id |
int,此次任务分配的ID,用来区分任务。 |
|
ret |
int,错误码。
|
约束说明
|
版本 |
约束 |
|---|---|
|
|
|
|
|
|