|
python初學特訓班12.2 Tesseract安裝後 run ocr1.py 產生錯誤
runfile('D:/Python book/本書範例/ch12/ocr1.py', wdir='D:/Python book/本書範例/ch12') Traceback (most recent call last):
File "<ipython-input-1-4f4da914e4ab>", line 1, in <module> runfile('D:/Python book/本書範例/ch12/ocr1.py', wdir='D:/Python book/本書範例/ch12')
File "d:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 668, in runfile execfile(filename, namespace)
File "d:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 108, in execfile exec(compile(f.read(), filename, 'exec'), namespace)
File "D:/Python book/本書範例/ch12/ocr1.py", line 2, in <module> ocr = subprocess.Popen("tesseract media\\text1.jpg media\\result")
File "d:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 171, in __init__ super(SubprocessPopen, self).__init__(*args, **kwargs)
File "d:\ProgramData\Anaconda3\lib\subprocess.py", line 676, in __init__ restore_signals, start_new_session)
File "d:\ProgramData\Anaconda3\lib\subprocess.py", line 957, in _execute_child startupinfo)
FileNotFoundError: [WinError 2] 系統找不到指定的檔案。
runfile('D:/Python book/本書範例/ch12/ocr1.py', wdir='D:/Python book/本書範例/ch12') Traceback (most recent call last):
File "<ipython-input-1-4f4da914e4ab>", line 1, in <module> runfile('D:/Python book/本書範例/ch12/ocr1.py', wdir='D:/Python book/本書範例/ch12')
File "d:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 668, in runfile execfile(filename, namespace)
File "d:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 108, in execfile exec(compile(f.read(), filename, 'exec'), namespace)
File "D:/Python book/本書範例/ch12/ocr1.py", line 2, in <module> ocr = subprocess.Popen("tesseract media\\text1.jpg media\\result")
File "d:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 171, in __init__ super(SubprocessPopen, self).__init__(*args, **kwargs)
File "d:\ProgramData\Anaconda3\lib\subprocess.py", line 676, in __init__ restore_signals, start_new_session)
File "d:\ProgramData\Anaconda3\lib\subprocess.py", line 957, in _execute_child startupinfo)
FileNotFoundError: [WinError 2] 系統找不到指定的檔案。 |