hi_vpc_crop_resize_border_region
Description
Defines the cropping, resizing, and border making information of the VPC.
Prototype
hi_vpc_crop_resize_border_region = {"dest_pic_info": hi_vpc_pic_info,
"crop_region": hi_vpc_crop_region,
"resize_info": hi_vpc_resize_info,
"dest_top_offset": dest_top_offset,
"dest_left_offset": dest_left_offset,
"border_type": hi_vpc_bord_type,
"scalar_value": hi_vpc_scalar}
Members
Member |
Description |
|---|---|
dest_pic_info |
Dictionary, destination image information. |
crop_region |
Dictionary, crop ROI information. |
resize_info |
Dictionary, cropping and resizing information. |
dest_top_offset |
Int, top offset of the destination image. |
dest_left_offset |
Int, left offset of the destination image. |
border_type |
Int, border type. |
scalar_value |
Dictionary, pixel value for border making. Valid only when the border type is HI_BORDER_CONSTANT. You can set the values of the RGB or YUV components in sequence. If both the input and output are in YUV format, the YUV component values are used. Otherwise, the RGB component values are used. |
Precautions
By default, the cropped image is converted into the format of the destination image before it is resized and padded to the size of the destination image.