> Dear All, > I am new to python and very much excited to learn this technology. > I have done setup of python 3.5.1 with PyCharm community edition on windows 7(64bit service pack 1). > I am trying to execute some piece of code but it fails . Requesting you to please help. > > My Piece of code is > import pytesseract > from PIL import Image > from PIL import ImageFilter > import os > print (os.getcwd()) > url="Polish.png" > def process_image(url): > image = _get_image(url) > image = image.filter(ImageFilter.SHARPEN) > # image = image.convert('1') > print (pytesseract.image_to_string(image)) > > def _get_image(url): > return Image.open(url) > > process_image(url) > > Error which I am getting , > C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\python.exe C:/Temp/Opt/src/ocr.py > C:\Temp\Opt\src > in subprocess > None > 0 > None > None > <subprocess.STARTUPINFO object at 0x02EA4BF0> > Traceback (most recent call last): > File "C:/Temp/Opt/src/ocr.py", line 17, in <module> > process_image(url) > File "C:/Temp/Opt/src/ocr.py", line 12, in process_image > print (pytesseract.image_to_string(image)) > File "C:\Users\Administrator\AppData\Roaming\Python\Python35\site-packages\pytesseract\pytesseract.py", line 161, in image_to_string > config=config) > File "C:\Users\Administrator\AppData\Roaming\Python\Python35\site-packages\pytesseract\pytesseract.py", line 94, in run_tesseract > stderr=subprocess.PIPE) > File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\subprocess.py", line 950, in __init__ > restore_signals, start_new_session) > File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\subprocess.py", line 1226, in _execute_child > startupinfo) > FileNotFoundError: [WinError 2] The system cannot find the file specified > > Process finished with exit code 1 > > Thanks and Regards > Deepak Srivastava > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20160505/e41c3c1c/attachment.html>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4