【发布时间】:2019-02-07 19:38:02
【问题描述】:
我正在使用 Google Vision API 来获取图像的相关标签。
var client = ImageAnnotatorClient.Create();
var image = Image.FromFile(@"C:\Users\Scorpio\Desktop\th.jpg");
var response = client.DetectLabels(image); // error
foreach (var annotation in response)
{
if (annotation.Description != null)
Console.WriteLine(annotation.Description);
}
知道如何解决这个问题吗?我尝试使用非常常见的图像,例如国旗,但仍然出错。
【问题讨论】:
-
如果你一直有这个问题,你可以尝试使用 gRPC 的任何其他 API,例如Firestore、Speech、Language、Datastore 还是 PubSub?不知道是不是代理问题。
标签: c# google-cloud-platform google-cloud-vision