0
votes

Is there any way to specify the language that we need to extract from an image.

for example: I have an image that contains arabic+ french characters and the API returns a mixed text , is there a way to extract only french characters

1
From the doc, you can specify the language. cloud.google.com/vision/docs/ocr#specifying_the_languagewannadream

1 Answers

0
votes

You can use languageHints inside an imageContext request seting it to 'fr' for example:

 "requests": [
    {
      "imageContext": {
        "languageHints": [
          "fr"
        ]

You can test it here