Google cloud vision-从OCR请求获取JSON错误响应

Google cloud vision-从OCR请求获取JSON错误响应,json,xamarin.android,ocr,google-cloud-vision,Json,Xamarin.android,Ocr,Google Cloud Vision,我对使用谷歌云API是新手,所以如果我问了任何愚蠢的问题,请原谅我。我想尝试由Xamarin c#开发android应用程序,对泰语进行OCR,所以我的想法是,我想从我的照片中获得OCR结果。 这是我的json请求 {"requests": [ {"image":{"content":"3QGzdykwB2MZPcpx...."}, "imageContext": {"languageHints":["th"]}, "features": [{"type":"DOCUMENT_TEXT_DETE

我对使用谷歌云API是新手,所以如果我问了任何愚蠢的问题,请原谅我。我想尝试由Xamarin c#开发android应用程序,对泰语进行OCR,所以我的想法是,我想从我的照片中获得OCR结果。 这是我的json请求

{"requests": [
{"image":{"content":"3QGzdykwB2MZPcpx...."},
"imageContext": {"languageHints":["th"]},
"features": [{"type":"DOCUMENT_TEXT_DETECTION"}]}]}
但我得到的结果是

"error": {
"code": 14,
"message": "Service temporarily unavailable. Error processing features."}

这怎么了?任何人请给一些建议。谢谢。

因为您没有提供源代码,所以我假设您正在使用

上述异常的主要原因是下面代码中的面注释为null。您可以根据需要更新以下代码

if (response.getFaceAnnotations() == null) {
  throw new IOException(
      response.getError() != null
          ? response.getError().getMessage()
          : "Unknown error getting image annotations");
}

得到相同的错误。。。任何决议