---
title: hi_isp_af_crop
description: "对AF模块输入图像进行裁剪。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/ispdevug/ispdevapi_0488.html
sourcePath: /source/zh/canncommercial/900/others/ispdevug/ispdevapi_0488.html
indexId: 4c51ad84b1f928dd36063023fefeab474ebc4756bb63aeddb846c5d04bc24a1f65
---
# hi_isp_af_crop

#### 说明

对AF模块输入图像进行裁剪。


#### 定义

```
typedef struct {
hi_bool
enable;
hi_u16
x;
hi_u16
y;
hi_u16
w;
hi_u16
h;
} hi_isp_af_crop;
```


#### 成员

| 成员名称 | 描述 |
| --- | --- |
| enable | 使能Crop，取值范围：[0, 1]。 |
| x | Crop X起始位置，取值范围：[0, ImageWidth \- 256]。 |
| y | Crop Y起始位置，取值范围：[0, ImageHeight \- 120]。 |
| w | Crop宽度，8对齐，取值范围：[256, ImageWidth]。 |
| h | Crop高度，2对齐，取值范围：[120, ImageHeight]。 |


#### 注意事项

- 水平方向起始位置与Crop宽度之和应小于图像宽度，垂直方向起始位置与Crop高度之和应小于图像高度。
- 对于BE的AF统计信息，ISP BE分块场景下，不支持AF CROP（输入图像裁剪）功能。
