A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2016-May/144431.html below:

[Python-Dev] Need help in OCR implementation with Python3.5.1 or pyCharm Community edition

[Python-Dev] Need help in OCR implementation with Python3.5.1 or pyCharm Community editionDeepak Srivastava d.srivastava15 at gmail.com
Thu May 5 04:24:04 EDT 2016
> 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>
More information about the Python-Dev mailing list

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