'how to detect the unknow text language in a image?

I have N number of scanned images. the images contain different languages like Chinese, Arabic and Japanese. I tried to do OCR process for the files using OCRMYPDF and tesseract. both required the language of the input file. But I don't know the language of the file. So, Now my question is how to identify the languages used in a image ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source