[Image-SIG] PyTesser: OCR is not triggered ...

Federo federo at email.si
Mon Sep 1 15:48:40 CEST 2008


Hi

I am new in PyTesser. I have instolled PyTesser from 
http://code.google.com/p/pytesser/
and PIL from
http://www.pythonware.com/products/pil/


PIL has exe for instalation. For PyTesser I simply unziped all files to
c:\Python25\lib\side-packages

Than I tried the following code:
import Image, ImageGrab
import pytesser
# Taking ScreenShot
im = ImageGrab.grab()
# Konverzija image Formata - Ni nujno potrebna
if im.mode=='RGBA': im=im.convert('RGB')
# PyTesser funkcija izvede OCR
print = image_to_string(im)

I recived the following error:
Traceback (most recent call last):
  File "<interactive input>", line 1, in <module>
  File "C:\Python25\lib\site-packages\pytesser.py", line 31, in image_to_string
    call_tesseract(scratch_image_name, scratch_text_name_root)
  File "C:\Python25\lib\site-packages\pytesser.py", line 21, in call_tesseract
    proc = subprocess.Popen(args)
  File "C:\Python25\lib\subprocess.py", line 594, in __init__
    errread, errwrite)
  File "C:\Python25\lib\subprocess.py", line 816, in _execute_child
    startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

WHAT IS MISSING IN MY INSTALATION?

Loking forward to your reply, Fedo


____________________
http://www.email.si/



More information about the Image-SIG mailing list