我正在使用 Tesseract 和 Python 从图像构建字符标识符。
\n\n这是我的代码:
\n\nfrom PIL import Image\nimport pytesseract as pyt\n \xc2\xa0\nimage_file = \'location\'\nim = Image.open(image_file)\ntext = pyt.image_to_string(image_file)\nprint (text)\nRun Code Online (Sandbox Code Playgroud)\n\n我在执行该程序时收到以下错误:
\n\n\n\n\n类型错误:不支持的图像对象
\n
有人能解决这个问题吗?
\n