vpc_crop_resize_paste
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
x |
|
√ |
|
√ |
Function Usage
Crops one or more ROIs from an input image, resizes them, and stores them to a specified area of the output image. This API is asynchronous.
Prototype
- C Prototype
1hi_s32 hi_mpi_vpc_crop_resize_paste (hi_vpc_chn chn, const hi_vpc_pic_info *source_pic, hi_vpc_crop_resize_paste_region crop_resize_paste_info[], hi_u32 count, hi_u32 *task_id, hi_s32 milli_sec);
- Python Function
1task_id, ret = acl.himpi.vpc_crop_resize_paste(chn, source_pic, crop_resize_paste_info, count, milli_sec)
Parameter Description
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 related restrictions, see Restrictions. |
crop_resize_paste_info |
List, information list of images to be cropped, resized, and pasted. The length is the same as the value of count. For details, see hi_vpc_crop_resize_paste_region. |
count |
Int, number of crop ROIs. Value range: [1, 256]. |
milli_sec |
Int, timeout interval, in milliseconds.
|
Return Value Description
Return Value |
Description |
|---|---|
ret |
Int, error code.
|
task_id |
Int, task ID, used to identify a task. |
Restrictions
Version |
Restrictions |
|---|---|
|
|
|