python - PyTesser simple usage error -
i've downloaded pytesser , extracted it.
i in pytesser_v0.0.1
folder , tried run sample usage code in python interpreter:
from pytesser import * print image_file_to_string('fnord.tif')
and output:
traceback (most recent call last): file "<stdin>", line 1, in <module> file "pytesser.py", line 44, in image_file_to_string call_tesseract(filename, scratch_text_name_root) file "pytesser.py", line 21, in call_tesseract proc = subprocess.popen(args) file "/usr/lib/python2.7/subprocess.py", line 679, in __init__ errread, errwrite) file "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child raise child_exception oserror: [errno 2] no such file or directory
note: i'm in ubuntu 12.10
python 2.7.3
can me understand error, , can fix ?
this isn't documented be, if not on windows need install tesseract
binary platform. on ubuntu , other debian based linux distributions, apt-get install tesseract-ocr
. can run:
python pytesser.py
which uses test files phototest.tif
, fnord.tif
, fonts_test.png
test library.
Comments
Post a Comment