crop(inputImage, cropRectVec)

Function Usage

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

Input Parameter Description

Parameter

Type

Description

inputImage

Image class

Image class before cropping

cropRectVec

List[Rect]

List of coordinate boxes for cropping the input image

Return Parameter Description

Returns the Image class list (List[Image]) after cropping.

Exception Throwing Interface

If image cropping fails, a runtime exception occurs.