图像识别 Image-标签识别:响应示例

时间:2025-01-26 10:38:40

响应示例

状态码: 200

成功响应结果

{ "result": {  "tags": [   {    "confidence": "39.42",    "i18n_tag": {     "en": "Picnic",     "zh": "野餐"    },    "i18n_type": {     "en": "Food",     "zh": "食物"    },    "instances": [],    "tag": "野餐",    "type": "食物"   },   {    "confidence": "30.19",    "i18n_tag": {     "en": "Miniature projector",     "zh": "微型投影仪"    },    "i18n_type": {     "en": "Electronics",     "zh": "电子类"    },    "instances": [],    "tag": "微型投影仪",    "type": "电子类"   },   {    "confidence": "24.93",    "i18n_tag": {     "en": "Picnic Basket",     "zh": "野餐篮"    },    "i18n_type": {     "en": "Home category",     "zh": "家居类"    },    "instances": [],    "tag": "野餐篮",    "type": "家居类"   },   {    "confidence": "21.58",    "i18n_tag": {     "en": "Harmonica",     "zh": "口琴"    },    "i18n_type": {     "en": "Culture and art",     "zh": "文化艺术类"    },    "instances": [],    "tag": "口琴",    "type": "文化艺术类"   }  ] }}

状态码: 400

失败响应结果

{  "error_code" : "AIS.0005",  "error_msg" : "The service does not exist."}
support.huaweicloud.com/api-image/image_03_0049.html