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.
1 | crop_resize(inputImage: Image, cropResizeVec: List) |
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. |
Image class list (List[Image]) after cropping and resizing
If the image cropping and resizing fails, a runtime exception is thrown.