vpc_crop
Applicable Products
|
Product |
Supported (√/x) |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
x |
|
|
√ |
|
|
√ |
Description
Crops one or more ROIs from an image. This is an asynchronous API.
Prototype
- C Prototype
1hi_s32hi_mpi_vpc_crop(hi_vpc_chnchn,consthi_vpc_pic_info*source_pic,hi_vpc_crop_region_infocrop_info[],hi_u32count,hi_u32*task_id,hi_s32milli_sec);
- Python Function
1task_id,ret=acl.himpi.vpc_crop(chn,source_pic,crop_info,count,milli_sec)
Parameters
|
Parameter |
Description |
|---|---|
|
chn |
Int, channel ID for image processing. |
|
source_pic |
Dict, source image information. For details, see hi_vpc_pic_info. For details about constraints, see Constraints. |
|
crop_info |
List, cropped image information list. The length is the same as the value of count. For details, see hi_vpc_crop_region_info. |
|
count |
Int, number of crop ROIs. Value range: [1, 256]. |
|
milli_sec |
Int, timeout interval, in milliseconds. |
Return Values
|
Return Value |
Description |
|---|---|
|
task_id |
Int, task ID, used to identify a task. |
|
ret |
Int, error code.
|
Constraints
|
Version |
Restrictions |
|---|---|
|
|
|
|
|
|