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.
1 | crop(inputImageVec: List, cropRectVec: List) |
Parameter |
Type |
Description |
|---|---|---|
inputImageVec |
List[Image] |
List of the Image class before cropping |
cropRectVec |
List[Rect] |
List of coordinate boxes for cropping |
Image class list (List[Image]) after cropping
If image cropping fails, a runtime exception is thrown.