AI开发平台MODELARTS-预置物体检测模式:输出

时间:2024-04-30 16:18:23

输出

推理结果以“JSON”体的形式返回,具体字段请参见表1

表1 参数说明

字段名

类型

描述

detection_classes

字符串数组

输出物体的检测类别列表,如["yunbao","cat"]

detection_boxes

数组,元素为浮点数数组

输出物体的检测框坐标列表,坐标表示为

detection_scores

浮点数数组

输出每种检测列表的置信度,用来衡量识别的准确度。

推理结果的“JSON Schema”表示如下:

{
	"type": "object",
	"properties": {
		"detection_classes": {
			"items": {
				"type": "string"
			},
			"type": "array"
		},
		"detection_boxes": {
			"items": {
				"minItems": 4,
				"items": {
					"type": "number"
				},
				"type": "array",
				"maxItems": 4
			},
			"type": "array"
		},
		"detection_scores": {
			"items": {
				"type": "string"
			},
			"type": "array"
		}
	}
}
support.huaweicloud.com/inference-modelarts/inference-modelarts-0074.html