vpc_crop
Applicability
|
Product |
Supported (√/x) |
|---|---|
|
|
√ |
|
|
√ |
|
|
x |
|
|
√ |
|
|
√ |
Function Usage
Crops one or more ROIs from an image. This API is asynchronous.
Prototype
- C Prototype
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 Function
1task_id, ret = acl.himpi.vpc_crop(chn, source_pic, crop_info, count, milli_sec)
Parameter Description
|
Parameter |
Description |
|---|---|
|
chn |
Int, channel ID for image processing.
|
|
source_pic |
Dict, original image information. For details, see hi_vpc_pic_info. For details about related restrictions, see Restrictions. |
|
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 Value Description
|
Return Value |
Description |
|---|---|
|
task_id |
Int, task ID, used to identify a task. |
|
ret |
Int, error code.
|
Restrictions
|
Version |
Restrictions |
|---|---|
|
|
|
|
|
|