crop_resize(inputImage, cropResizeVec)
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.
Input Parameter Description
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. |
Return Parameter Description
Returns the Image class list (List[Image]) after cropping and resizing.
Exception Throwing Interface
If the image cropping and resizing fails, a runtime exception occurs.
Parent topic: ImageProcessor