账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    python 在centos 装tesseract-ocr 遇到的问题
    23
    0
    shenjianlin@iz2zeewrvu7b7gkl4l7xv1z ~]$ cd ./Oppo/
    [shenjianlin@iz2zeewrvu7b7gkl4l7xv1z Oppo]$ python oppo.py 
    Traceback (most recent call last):
      File "oppo.py", line 674, in <module>
        oppo.login_in()
      File "oppo.py", line 46, in login_in
        Form_data = {'name': '1000002573', 'passwd': 'pairuioppo8', 'captcha': self.captcha(response.content)}
      File "oppo.py", line 31, in captcha
        text = pytesseract.image_to_string(image)
      File "/usr/lib/python2.7/site-packages/pytesseract/pytesseract.py", line 193, in image_to_string
        return run_and_get_output(image, 'txt', lang, config, nice)
      File "/usr/lib/python2.7/site-packages/pytesseract/pytesseract.py", line 140, in run_and_get_output
        run_tesseract(**kwargs)
      File "/usr/lib/python2.7/site-packages/pytesseract/pytesseract.py", line 116, in run_tesseract
        raise TesseractError(status_code, get_errors(error_string))
    pytesseract.pytesseract.TesseractError: (1, u'Tesseract Open Source OCR Engine v3.04.00 with Leptonica Error opening data file /usr/local/share/tessdata/eng.traineddata Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory. Failed loading language \'eng\' Tesseract couldn\'t load any languages! Could not initialize tesseract.')
    
    
    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部