本文介绍智能标签模板参数和对应模板示例。
名称 | 类型 | 必填 | 描述 | 示例值 |
TemplateName | string | 是 | 自定义模板名称,字符串内容中英文不限,最长 120 字符。 | template-example-**** |
AnalyseTypes | string | 是 | 分析类型,可多选,⽤半角逗号(,)分隔。当前支持以下类型:
说明 请确保您待分析的文件中包含所选分析类型的结果,否则可能会导致查询结果为空。例如,如果选择的分析类型为 OCR,但上传的图片中未包含 OCR 结果,则查询时将返回空结果。 计费说明 分析类型与计费项的对应关系如下:
说明 配置智能标签功能开启的分析类型,将会产生费用,收费标准请参见智能标签。 | ocr |
FaceCategoryIds | string | 否 | 参与识别的⼈脸库 ID 列表,可多选,⽤半角逗号(,)分隔。可填⼊系统⼈脸库 ID 和⾃定义⼈脸库 ID。其中系统⼈脸库 ID 如下:
| celebrity |
FaceCustomParamsConfig | string | 否 | 人脸算法的参数,JSON String 形式,目前支持人脸检测阈值和人脸识别阈值调整。
| { "faceDetThreshold":0.999, "faceRegThreshold":0.9 } |
ObjectGroupIds | string | 否 | 参与识别的物体库 ID 列表,可多选,⽤半角逗号(,)分隔。可填⼊系统物体库 ID 和⾃定义物体库 ID。其中系统物体库 ID 如下:
| general,item,weapon,animal |
LandmarkGroupIds | string | 否 | 参与识别的地域库 ID 列表,可多选,⽤半角逗号(,)分隔。可填⼊系统地域库 ID 和⾃定义地域库 ID。其中系统地域库 ID 如下:
| common |
KeywordConfig | string | 否 | 关键词标签配置。type 代表词性类别选择,可多选,用半角逗号(,)分隔,当前支持以下类别:
说明 当未传递 KeywordConfig,或者 Keyword 字段不合法(不为 JSON 字符串),或者 KeywordsConfig 不包含 type 字段,亦或 type 字段不合法时,系统将默认返回type 全部类型关键词。 | "type": "name,location,organization,other" } |
LabelCustomCategoryIds | string | 否 | 参与识别的自定义标签库 ID 列表,可多选,⽤半角逗号(,)分隔。 | ab***cd,ef***hi |
LabelCustomParamsConfig | string | 否 | 额外自定义标签库的参数配置,目前只支持阈值的设置。 {"threshold": xxx} | {"threshold": 0.4} |
模板示例
{
"KeywordConfig": "{\"type\":\"name,location,organization,other\"}",
"FaceCategoryIds": "celebrity,politician,sensitive",
"FaceCustomParamsConfig": "{\"faceDetThreshold\":0.9,\"faceRegThreshold\":0.9}",
"ObjectGroupIds": "general,item,weapon,animal",
"LandmarkGroupIds": "common",
"LogoGroupIds": "common",
"AnalyseTypes": "ocr,asr,classification,shows,face,role,object,tvstation,action,emotion,landmark,scene,organization,keywords,nlp,clipSplit",
"TemplateName": "newTemplate"
}