---
title: hi_mpi_isp_set_bind_attr
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/ispdevug/ispdevapi_0091.html
sourcePath: /source/zh/canncommercial/900/others/ispdevug/ispdevapi_0091.html
indexId: 877a71eda15b3730494420e2b38687799aa477cc85891a4e56a8d8fc0f5fb77465
---
# hi_mpi_isp_set_bind_attr

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | ☓ |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | ☓ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | ☓ |
| Atlas 200I/500 A2 推理产品 | √ |
| Atlas 推理系列产品 | ☓ |
| Atlas 训练系列产品 | ☓ |


#### 功能说明

设置ISP库与3A库、sensor的绑定关系。


#### 函数原型

```
hi_s32
hi_mpi_isp_set_bind_attr(
hi_vi_pipe
vi_pipe, const
hi_isp_bind_attr
*bind_attr)
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| vi\_pipe | 输入 | VI PIPE号。 取值范围：[0, 12)。 |
| bind\_attr | 输入 | 绑定结构体指针。 |


#### 返回值说明

- 0：成功
- 非0：失败，参见  ISP返回码
。


#### 约束说明

- 不是必须调用的接口，仅当注册多个AE/AWB库，并希望切换算法库时才需要调用。当注册多个AE/AWB库时，默认绑定的为最后一个注册的AE库和AWB库。
- 此接口不支持多进程操作。
