【问题标题】:pytesseract.pytesseract.TesseractError: (3221225477, '')* on Windows Serverpytesseract.pytesseract.TesseractError: (3221225477, '')* 在 Windows 服务器上
【发布时间】:2020-03-03 14:23:58
【问题描述】:
Traceback (most recent call last):
  File "2.py", line 75, in <module>
    config='--psm 10 --oem 3 -c tessedit_char_whitelist=0123456789')
  File "C:\Program Files\Python37\lib\site-packages\pytesseract\pytesseract.py", line 347, in image_to_string
    }[output_type]()
  File "C:\Program Files\Python37\lib\site-packages\pytesseract\pytesseract.py", line 346, in <lambda>
    Output.STRING: lambda: run_and_get_output(*args),
  File "C:\Program Files\Python37\lib\site-packages\pytesseract\pytesseract.py", line 259, in run_and_get_output
    with open(filename, 'rb') as output_file:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\CRAWLE~1\\AppData\\Local\\Temp\\4\\tess_pwzjqnpq.txt'
['C:\\Program Files\\Tesseract-OCR\\tesseract.exe', 'C:\\Users\\CRAWLE~1\\AppData\\Local\\Temp\\4\\tess_pwzjqnpq.PNG', 'C:\\Users\\CRAWLE~1\\AppData\\Local\\Temp\\4\\tess_pwzjqnpq', '-l', 'eng', '--psm', '10', '--oem', '3', '-c', 'tessedit_char_whitelist=0123456789', 'txt']

大家好,我的 Windows Server 遇到了这个问题。
错误是 = pytesseract.pytesseract.TesseractError: (3221225477, '')*

我试过这个解决方案raise “pytesseract.pytesseract.TesseractError: (3221225477, '')”

但它不起作用。

报错的最后一行是pytesseract的cmd_args变量。

我在这个错误上浪费了几个小时。我真的需要帮助!谢谢..

我看到的错误是:

FileNotFoundError: [Errno 2] No such file or directory: 
'C:\\Users\\CRAWLE~1\\AppData\\Local\\Temp\\4\\tess_pwzjqnpq.txt'

在发生此错误之前,创建了一个名为“tess_pwzjqnpq”的文件,但文件名的末尾没有 .txt。并且出错后立即删除。

【问题讨论】:

    标签: python windows tesseract windows-server-2012 python-tesseract


    【解决方案1】:

    解决方案是安装旧的 tesseract 版本,该版本不是具有管理员权限的 alpha 版本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-10-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-01
      相关资源
      最近更新 更多