ImageProcessor类的图像抠图接口,输入输出格式、分辨率范围、对齐方式请参见Crop。
接口使用流程请参考抠图。
1
crop(inputImage: Image, cropRectVec: List)
参数名
类型
说明
inputImage
Image类
输入抠图前的Image类。
cropRectVec
List[Rect]
输入图像的抠图坐标框列表。
返回抠图后的Image类列表List[Image]。
抠图失败,抛出runtime异常。