我正在用Python中的PyteSeract计算一个非常简单的图像到文本。然而,我一直有这个错误
pytesseract.pytesseract.TesseractError: (1, 'Tesseract Open Source OCR Engine v5.0.0-alpha.20200328 with Leptonica Error, cannot read input file C:\code\img: No such file or directory Error during processing.')
我尝试将图像和python文件放在同一个文件夹中,但错误仍然存在。有办法解决这个问题吗
这是操作系统的权限问题,而不是pytesseract。 根本原因是没有读取该文件的权限。 在我的Ubuntu20项目中,我将该文件夹移动到另一个目录,一切正常。 你可以在https://askubuntu.com/questions/1046890/libreoffice-cant-access-tmp-files-in-18-04尝试同样的方法
相关问题 更多 >
编程相关推荐