crop

Function Usage

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

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

Prototype

1
crop(inputImage: Image, cropRectVec: List)

Input Parameters

Parameter

Type

Description

inputImage

Image class

Image class before cropping

cropRectVec

List[Rect]

List of coordinate boxes for cropping

Response Parameters

Image class list (List[Image]) after cropping

Exception Throwing Interface

If image cropping fails, a runtime exception is thrown.