Updates the analysis template for a smart tag job.
Operation description
This operation updates a template that specifies the analysis algorithms for a smart tag job. You can combine different parameters as needed.
QPS limits
The queries per second (QPS) limit for this operation is 100 calls per second for each user. If you exceed the limit, API calls are subject to rate limiting, which can affect your business. Call this operation at a reasonable rate. For more information, see QPS limits.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mts:UpdateSmarttagTemplate |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateId |
string |
Yes |
The ID of the template. Obtain this ID from the response of the Add a template operation. |
05de22f255284c7a8d2aab535dde**** |
| TemplateName |
string |
No |
The name of the custom template. The name can contain English and Chinese characters and be up to 120 characters long. |
template-example-**** |
| Industry |
string |
No |
The industry of the file to be analyzed. The default value is common (general). Select a suitable industry to match the file with the appropriate algorithm combination. Valid values:
|
common |
| Scene |
string |
No |
The scenario. Select a suitable scenario to match the file with the appropriate algorithm combination. The default value is search. Valid values:
|
search |
| AnalyseTypes |
string |
No |
The analysis types. You can select multiple types. Separate them with commas (,). The following types are available:
|
ocr,asr |
| FaceCategoryIds |
string |
No |
The IDs of the face libraries for recognition. You can specify multiple IDs, separated by commas (,). You can enter the IDs of system face libraries and custom face libraries. The default value is celebrity, politician, and sensitive. The system face library IDs are as follows:
Note
For more information about the IDs of custom face libraries, see Custom face library operations. |
celebrity |
| FaceCustomParamsConfig |
string |
No |
The parameters for the facial recognition algorithm, in a JSON string. The face detection threshold and facial recognition threshold are supported.
|
{ "faceDetThreshold":0.999, "faceRegThreshold":0.9 } |
| ObjectGroupIds |
string |
No |
The IDs of the object libraries for recognition. You can specify multiple IDs, separated by commas (,). You can enter the IDs of system object libraries and custom object libraries. The system object library IDs are as follows:
|
general,item,weapon,animal |
| LandmarkGroupIds |
string |
No |
The IDs of the landmark libraries for recognition. You can specify multiple IDs, separated by commas (,). You can enter the IDs of system landmark libraries and custom landmark libraries. The system landmark library IDs are as follows:
|
common |
| IsDefault |
boolean |
No |
Specifies whether the template is the default template. Valid values:
The default value is false. Each user can have only one default template. |
true |
| LabelType |
string |
No |
The labeling type. The default value is auto. The following types are supported:
|
hmi |
| LabelVersion |
string |
No |
Specifies the smart tag version. The default value is "1.0".
|
1.0 |
| KnowledgeConfig |
string |
No |
In Smart Tag 2.0 and 2.0-custom modes, this parameter sets the scope of knowledge graph fields that are returned in the tagging results. For more information about knowledge graph information, see Knowledge graph fields in smart tag operations. If you do not specify this parameter, or if the value of knowledgeConfig is empty or not a valid JSON string, the following fields are returned by default:
|
{ "movie":"name,alias,chnl,genre", "music":"songName,artistName", "person":"name,gender" } |
| KeywordConfig |
string |
No |
The keyword tag configuration. `type` specifies the part-of-speech categories. You can select multiple categories, separated by commas (,). The following categories are available:
Note
If you do not specify this parameter, or if its value is invalid, all keyword categories are returned by default. A value is invalid if it is not a valid JSON string, is missing the type field, or has an invalid type value. |
{ "type": "name,location,organization,other" } |
| TemplateConfig |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The ID of the request. |
5210DBB0-E327-4D45-ADBC-0B83C8796E26 |
Examples
Success response
JSON format
{
"RequestId": "5210DBB0-E327-4D45-ADBC-0B83C8796E26"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.