MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.26k stars 21.43k forks source link

Can OCR api return the text and the language that it detected? #79862

Closed MA1GitHub closed 3 years ago

MA1GitHub commented 3 years ago

How can we know the language of the image we sent to the OCR api?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

YutongTie-MSFT commented 3 years ago

Thanks for the feedback! We are currently investigating and will update you shortly.

YutongTie-MSFT commented 3 years ago

Hello,

OCR can not detect the language in your image automatically, you need to use Text Analytics - Language detection to recognize the language : https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/how-tos/text-analytics-how-to-language-detection

So the step should be: Use OCR/ Read API to recognize the content in your image. Input your result in step 1 to Text Analytics API for language detection. Then you can get the result of the language and also content.

Regards, Yutong

YutongTie-MSFT commented 3 years ago

We will now proceed to close this thread. If there are further questions regarding this matter, please respond here and @YutongTie-MSFT and we will gladly continue the discussion.