4thmagi
V2EX  ›  问与答

tesseract 报错 FileNotFoundError: [WinError 2] 系统找不到指定的文件

  •  
  •   4thmagi · May 29, 2018 · 795 views
    This topic created in 2913 days ago, the information mentioned may be changed or developed.

    在 python3.6,win7 环境下用 pytesseract.image_to_string()时总是会报错:FileNotFoundError: [WinError 2] 系统找不到指定的文件。我按照网上搜索的方法下载安装了 tesseract-ocr,配置了环境变量,也修改 pytesseract.py 内的 tesseract_cmd,改成了这样:tesseract_cmd = 'C:\Program Files\Tesseract-OCR\tesseract'。但还是报同样的错误:找不到指定的文件。请问如何才能使用 tesseract ?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1096 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 18:44 · PVG 02:44 · LAX 11:44 · JFK 14:44
    ♥ Do have faith in what you're doing.