Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WindowsError: [Error 2] #64

Closed
KyonP opened this issue Jul 14, 2017 · 1 comment
Closed

WindowsError: [Error 2] #64

KyonP opened this issue Jul 14, 2017 · 1 comment

Comments

@KyonP
Copy link

KyonP commented Jul 14, 2017

stuck in error.

python pytesseract.py test.png
Traceback (most recent call last):
  File "pytesseract.py", line 174, in <module>
    main()
  File "pytesseract.py", line 158, in main
    print(image_to_string(image))
  File "pytesseract.py", line 131, in image_to_string
    nice=nice)
  File "pytesseract.py", line 51, in run_tesseract
    proc = subprocess.Popen(command, stderr=subprocess.PIPE)
  File "c:\Python27\lib\subprocess.py", line 390, in __init__
    errread, errwrite)
  File "c:\Python27\lib\subprocess.py", line 640, in _execute_child
    startupinfo)
WindowsError: [Error 2]

I think I've installed all the dependencies needed but can't solve this one.

@bozhodimitrov
Copy link
Collaborator

bozhodimitrov commented Jul 14, 2017

Hello @KyonP, you should point pytesseract to the installation of Tesseract-OCR.
Change the pytesseract.pytesseract.tesseract_cmd variable.
Please follow the documentation on the main page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants