Ocr, Tesseract, Opencv, Pytesseract, Optical Character Recogn.
config=custom_config) from langdetect import detect_langs detect_langs(txt) This should output a list of languages in the text and their probabilities. [en:0.714282468983554, es:0.2857145605644145] The language codes used by langdetect follow ISO 639-1 codes. To compare, please check this and this.