This topic describes the parameters for Smart Tag templates and provides corresponding sample templates.
Name | Type | Required | Description | Example |
TemplateName | string | Yes | The name of the custom template. The name can contain Chinese and English characters and can be up to 120 characters long. | template-example-**** |
Industry | string | Yes | The industry of the file to be analyzed. Select an appropriate industry. The system uses the industry to find a suitable algorithm combination. Default value: common (general industry). Valid values:
| common |
Scene | string | Yes | The use scenario of the file to be analyzed. Select an appropriate scenario. The system uses the scenario to find a suitable algorithm combination. Valid values:
| search |
AnalyseTypes | string | Yes | The analysis types. You can select multiple types and separate them with commas (,). The following types are supported:
Note Make sure that the file you want to analyze contains results for the selected analysis types. Otherwise, the query result may be empty. For example, if you select OCR as the analysis type but the uploaded image does not contain OCR results, an empty result is returned. Billing The mapping between analysis types and billable items is as follows:
Note You are charged for the analysis types that you enable for the DataQ - Smart Tag Service feature. For more information about billing, see DataQ - Smart Tag Service. | ocr |
FaceCategoryIds | string | No | The IDs of the person libraries to use for recognition. You can specify multiple IDs. Separate them with commas (,). You can enter the IDs of system person libraries and custom person libraries. The IDs of the system person libraries are as follows:
| celebrity |
FaceCustomParamsConfig | string | No | The parameters for the facial recognition algorithm. The value must be a JSON string. You can adjust the thresholds for face detection and facial recognition.
| { "faceDetThreshold":0.999, "faceRegThreshold":0.9 } |
ObjectGroupIds | string | No | The IDs of the object detection libraries to use. You can specify multiple IDs. Separate them with commas (,). You can enter the IDs of system object detection libraries and custom object detection libraries. The IDs of the system object detection libraries are as follows:
| general,item,weapon,animal |
LandmarkGroupIds | string | No | The IDs of the landmark libraries to use. You can specify multiple IDs. Separate them with commas (,). You can enter the IDs of system landmark libraries and custom landmark libraries. The IDs of the system landmark libraries are as follows:
| common |
KeywordConfig | string | No | The configuration for keyword tags. type specifies the part-of-speech categories. You can select multiple categories. Separate them with commas (,). The following categories are supported:
Note If you do not specify KeywordConfig, specify an invalid value for KeywordConfig that is not a JSON string, do not include the type field in KeywordConfig, or specify an invalid value for the type field, keywords of all types are returned by default. | "type": "name,location,organization,other" } |
LabelCustomCategoryIds | string | No | The IDs of the custom tag libraries to use. You can specify multiple IDs. Separate them with commas (,). | ab***cd,ef***hi |
LabelCustomParamsConfig | string | No | The parameter settings for additional custom tag libraries. Only the threshold can be set. Example: {"threshold": xxx} | {"threshold": 0.4} |
Sample template
{
"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"
}