---
title: crop_resize(inputImage, cropResizeVec)
description: "ImageProcessor类的图像抠图并缩放接口，输入输出格式、分辨率范围、对齐方式请参见CropResize。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/msadg/mxvisionug_1135.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/msadg/mxvisionug_1135.html
indexId: 5734b71d717027e0941ba26f39d3ba3f49eb9d771978bdc51298ad0d94d7b22c102
---
# crop_resize(inputImage, cropResizeVec)

#### 函数功能

ImageProcessor类的图像抠图并缩放接口，输入输出格式、分辨率范围、对齐方式请参见CropResize。


#### 输入参数说明

| 参数名 | 类型 | 说明 |
| --- | --- | --- |
| inputImage | Image类 | 输入抠图缩放前的Image类。 |
| cropResizeVec | List[tuple(Rect, Size)] | 输入图像的抠图缩放参数列表。Rect为抠图坐标框，Size为缩放宽高。 |


#### 返回参数说明

返回抠图缩放后的Image类列表List[Image]。


#### 抛异常接口

抠图缩放失败，抛出runtime异常。
