Search code examples
androidgoogle-cloud-platformgoogle-cloud-vision

Specify language for response in Google Cloud Vision API


I'm using the Google Cloud Vision API to detect landmarks, webEntities and other things from a given image (check the docs here), I am specifically using the images:annotate endpoint, and I want to specify the language, I want the returned results to be in English.

Is there a way I can achieve that?


Solution

  • In this document states that the only language for retrieved labels is English and you can use Cloud Translation API to translate it into other language. About specifying language in Vision API, as far as I know, one can give language hint for TEXT_DETECTION as explained in this document but I'm not aware to specify language in non-text detection.