import easyocr def text_recognition(file_path): reader = easyocr.Reader(["ru", "en"]) result = reader.readtext(file_path, detail=0) return result def main(): file_path = input("Enter a file path:") print(file_path) print(text_recognition(file_path=file_path)) if __name__ == "__main__": main()