Search code examples
androidocrgoogle-cloud-vision

Swedish letters missing in google-vision Api response


I am trying to use Google Cloud Vision with TEXT_DETECTION to perform OCR. It works perfect and i get the response in a Json object. The problem is that when I try to detect swedish text it does not return swedish letters. Api correctly detects the local. it returns the response but does not include swedish letters like (ä,ö) etc.

I have tried to set local in the request but it does not work.

I just want to get swedish letters in response. I have no idea what should i do?

if someone give some link to google-vision discussion thread what will be helpful.


Solution

  • If Swedish is your only language, may be try to use LanguageHints. https://cloud.google.com/vision/reference/rest/v1/images/annotate#imagecontext

    Out of blue, Swedish works well for you (Percentage of success)?

    Thanks! ~Suman