Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Siddardha Annapureddy
Siddardha Annapureddy

Posted on

     

tesseract not working in the spyder

i am getting an error when i use the python tesseract in spyder. i have installed the tesseract engine and install the pytesseract package too.
i am getting the below error

TesseractNotFoundError: C:\ProgramFiles\Tesseract-OCR\tesseract.exe is not installed or it's not in your PATH. See README file for more information.
i have set the tesseract folder path in system environmental variables too.
please help me i am struck
the below information is the console shown error

runfile('C:/Users/Siddardha/.spyder-py3/python_using_pytesseract.py', wdir='C:/Users/Siddardha/.spyder-py3')Traceback (most recent call last):  File ~\AppData\Roaming\Python\Python39\site-packages\pytesseract\pytesseract.py:254 in run_tesseract    proc = subprocess.Popen(cmd_args, **subprocess_args())  File C:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py:108 in __init__    super(SubprocessPopen, self).__init__(*args, **kwargs)  File C:\ProgramData\Anaconda3\lib\subprocess.py:951 in __init__    self._execute_child(args, executable, preexec_fn, close_fds,  File C:\ProgramData\Anaconda3\lib\subprocess.py:1420 in _execute_child    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,FileNotFoundError: [WinError 2] The system cannot find the file specifiedDuring handling of the above exception, another exception occurred:Traceback (most recent call last):  File ~\.spyder-py3\python_using_pytesseract.py:22 in <module>    texts = pytesseract.image_to_string(img)  File ~\AppData\Roaming\Python\Python39\site-packages\pytesseract\pytesseract.py:416 in image_to_string    return {  File ~\AppData\Roaming\Python\Python39\site-packages\pytesseract\pytesseract.py:419 in <lambda>    Output.STRING: lambda: run_and_get_output(*args),  File ~\AppData\Roaming\Python\Python39\site-packages\pytesseract\pytesseract.py:286 in run_and_get_output    run_tesseract(**kwargs)  File ~\AppData\Roaming\Python\Python39\site-packages\pytesseract\pytesseract.py:258 in run_tesseract    raise TesseractNotFoundError()TesseractNotFoundError: C:\ProgramFiles\Tesseract-OCR\tesseract.exe is not installed or it's not in your PATH. See README file for more information.
Enter fullscreen modeExit fullscreen mode

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

i am computer science student
  • Location
    india
  • Education
    vasireddy venkatadri institute of technology
  • Work
    student
  • Joined

Trending onDEV CommunityHot

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp