用另一种语言从 Google Vision API 中获取 LABEL_DETECTION 结果
Getting the LABEL_DETECTION results from Google Vision API in another language
更具体地说,我想获得法语标签,所以不是:
"labelAnnotations": [
{
"mid": "/m/019sc",
"description": "black",
"score": 0.95744693
},
{
"mid": "/m/07s6nbt",
"description": "text",
"score": 0.9175479
},
{
"mid": "/m/01zbnw",
"description": "screenshot",
"score": 0.8477094
}]
我想得到:
"labelAnnotations": [
{
"mid": "/m/019sc",
"description": "noir",
"score": 0.95744693
},
{
"mid": "/m/07s6nbt",
"description": "texte",
"score": 0.9175479
},
{
"mid": "/m/01zbnw",
"description": "capture d'écran",
"score": 0.8477094
}]
或者 Google 翻译 API 我目前唯一的解决方案?
Google Cloud Vision API LABEL_DETECTION 仅以英文返回。 Cloud Translate API can translate English labels into any of a number of other languages.
Reference Detect Labels
更具体地说,我想获得法语标签,所以不是:
"labelAnnotations": [
{
"mid": "/m/019sc",
"description": "black",
"score": 0.95744693
},
{
"mid": "/m/07s6nbt",
"description": "text",
"score": 0.9175479
},
{
"mid": "/m/01zbnw",
"description": "screenshot",
"score": 0.8477094
}]
我想得到:
"labelAnnotations": [
{
"mid": "/m/019sc",
"description": "noir",
"score": 0.95744693
},
{
"mid": "/m/07s6nbt",
"description": "texte",
"score": 0.9175479
},
{
"mid": "/m/01zbnw",
"description": "capture d'écran",
"score": 0.8477094
}]
或者 Google 翻译 API 我目前唯一的解决方案?
Google Cloud Vision API LABEL_DETECTION 仅以英文返回。 Cloud Translate API can translate English labels into any of a number of other languages.
Reference Detect Labels