crop_resize

Function Usage

Image cropping and resizing API of the ImageProcessor class. For details about the input and output formats, resolution ranges, and alignment modes, see CropResize.

For details about how to use this API, see Image Cropping and Resizing.

Prototype

1
crop_resize(inputImage: Image, cropResizeVec: List)

Input Parameters

Parameter

Type

Description

inputImage

Image class

Image class before cropping and resizing.

cropResizeVec

List[tuple(Rect, Size)]

List of cropping and resizing parameters. Rect indicates the coordinate frame of the cropping ROI, and Size indicates the resizing width and height.

Response Parameters

Image class list (List[Image]) after cropping and resizing

Exception Throwing Interface

If the image cropping and resizing fails, a runtime exception is thrown.