---
title: Init
description: "用于完成模型后处理初始化。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/msadg/mxvisionug_0873.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/msadg/mxvisionug_0873.html
indexId: e5dc93d76374160db90e3894c66947e5976f616b858d627fee4420759e0ee44c102
---
# Init

#### 函数功能

用于完成模型后处理初始化。


#### 函数原型

```
SDK_DEPRECATED_FOR() virtual APP_ERROR Init(const std::map<std::string, std::shared_ptr<void>> &postConfig);  //已废弃
virtual APP_ERROR Init(const std::map<std::string, std::string> &postConfig);
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| postConfig | 输入 | 配置参数。 |


#### 返回参数说明

| 数据结构 | 说明 |
| --- | --- |
| APP\_ERROR | 程序执行返回的错误码，请参考APP\_ERROR说明。 |
