How to detect language of text image?

I want to detect the language of the text in the image. But the OCR default language is English. And in case the language in the image is different then random gibberish is extracted.


Please explore these



It might be better to use cloud OCR such as MS Computer Vision because it supports document with mixed languages.