---
title: Process
description: "接受模型推理输出张量，输出目标检测结果。后续执行时，需要先执行Init()方法。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/msadg/mxvisionug_0928.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/msadg/mxvisionug_0928.html
indexId: f007577867457313afb74bb60e149f7917ee6d0439b38c773d78f9002ba0ad5b102
---
# Process

#### 函数功能

接受模型推理输出张量，输出目标检测结果。后续执行时，需要先执行Init()方法。


#### 函数原型

```
virtual APP_ERROR Process(const std::vector<TensorBase>& tensors,
std::vector<std::vector<TextObjectInfo>> &textObjectInfos,
const std::vector<ResizedImageInfo>& resizedImageInfos = {},
const std::map<std::string, std::shared_ptr<void>> &configParamMap = {});
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| tensors | 输入 | 模型后处理的输入张量。 |
| textObjectInfos | 输出 | 输出文本目标框的坐标、置信度等信息。 |
| resizedImageInfos | 输入 | 图片信息（包括原图和缩放后宽高）。 |
| configParamMap | 输入 | 其他配置参数，可选。 |


#### 返回参数说明

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