查询智能标签作业的分析模板。
接口说明
本接口通过模板 ID 查询模板,如果不传入模板 ID 则默认查询当前 RAM 用户所有模板。
QPS 限制
本接口的单用户 QPS 限制为 100 次/秒。超过限制,API 调用会被限流,这可能会影响您的业务,请合理调用。更多信息,请参见 QPS 限制。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
mts:QuerySmarttagTemplateList |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| TemplateId |
string |
否 |
模板 ID,可以从添加模板的返回参数中获取。若指定该参数,则只返回该模板的信息;否则返回当前 RAM⽤户所有模板的信息。 |
05de22f255284c7a8d2aab535dde**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回参数。 |
||
| RequestId |
string |
请求 ID。 |
5210DBB0-E327-4D45-ADBC-0B83C8796E26 |
| Templates |
object |
||
| Template |
array<object> |
模板列表。 |
|
|
object |
模板详细信息。 |
||
| AnalyseTypes |
string |
分析类型,可能返回一个或多个。可取值:
|
ocr,asr,classification,shows,face,role,object,tvstation,action,emotion,landmark,scene |
| Industry |
string |
⾏业。默认值:common(通用行业)。可取值:
|
common |
| IsDefault |
boolean |
是否为默认模板。可取值:
|
false |
| TemplateName |
string |
模板名称。 |
example-**** |
| TemplateId |
string |
模板 ID。 |
05de22f255284c7a8d2aab535dde**** |
| FaceCategoryIds |
string |
系统⼈脸库 ID,可能返回一个或多个。可取值:
|
politician,sensitive,celebrity |
| FaceCustomParamsConfig |
string |
人脸算法的参数,JSON String 形式,目前支持人脸检测阈值和人脸识别阈值。取值:
|
{ "faceDetThreshold":0.999, "faceRegThreshold":0.9 } |
| ObjectGroupIds |
string |
参与识别的物体库 ID 列表。 |
general,item,weapon,animal |
| LandmarkGroupIds |
string |
参与识别的地域库 ID 列表。 |
common |
| Scene |
string |
场景,可取值:
|
search |
| LabelType |
string |
标注类型,默认值 auto。目前支持类型:
|
hmi |
| LabelVersion |
string |
指定智能标签版本,默认为"1.0"。可取值:
|
1.0 |
| KnowledgeConfig |
string |
智能标签 2.0 和 2.0-custom 模式下,设置返回标签结果中识别到知识图谱信息字段范围。更多知识图谱信息请参见智能标签作业知识图谱字段说明。不填写或者 knowledgeConfig 为空或者 knowledgeConfig 非法(不为 JSON String)时,默认输出以下字段:
|
{ "movie":"name,alias,chnl,genre", "music":"songName,artistName", "person":"name,gender" } |
| KeywordConfig |
string |
关键词标签配置。type 代表词性类别选择,可多选,用半角逗号(,)分隔,当前有以下类别:
说明
当不传 KeywordConfig 时或者 Keyword 字段非法(不为 JSON String)或者 KeywordsConfig 不包含 type 字段或者 type 字段非法时默认返回 type 全部类型关键词。 |
{ "type": "name,location,organization,other" } |
示例
正常返回示例
JSON格式
{
"RequestId": "5210DBB0-E327-4D45-ADBC-0B83C8796E26",
"Templates": {
"Template": [
{
"AnalyseTypes": "ocr,asr,classification,shows,face,role,object,tvstation,action,emotion,landmark,scene",
"Industry": "common",
"IsDefault": false,
"TemplateName": "example-****",
"TemplateId": "05de22f255284c7a8d2aab535dde****",
"FaceCategoryIds": "politician,sensitive,celebrity",
"FaceCustomParamsConfig": "{ \"faceDetThreshold\":0.999, \"faceRegThreshold\":0.9 }",
"ObjectGroupIds": "general,item,weapon,animal",
"LandmarkGroupIds": "common",
"Scene": "search",
"LabelType": "hmi",
"LabelVersion": "1.0",
"KnowledgeConfig": "{ \"movie\":\"name,alias,chnl,genre\", \"music\":\"songName,artistName\", \"person\":\"name,gender\" }",
"KeywordConfig": "{ \"type\": \"name,location,organization,other\" }"
}
]
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。