opencv - Python Tesseract Error on Windows 8 machine -


i have installed python2.7, in c:\python27. added path in environment variables too.

i have numpy & opencv working. basic image processing using it. working till date.

i have work on ocr, , tried follow instructions on installing python-tesseract here, have installed 32-bit version.

i opened python, , when

    import tesseract 

it imports without error or problem.

but when run sample code, errors :

code

    import cv2.cv cv     import tesseract      image=cv.loadimage("eurotext.jpg", cv.cv_load_image_grayscale)      api = tesseract.tessbaseapi()     api.init(".","eng",tesseract.oem_default)     #api.setpagesegmode(tesseract.psm_single_word)     api.setpagesegmode(tesseract.psm_auto)     tesseract.setcvimage(image,api)     text=api.getutf8text()     conf=api.meantextconf()     image=none     print text     print conf 

errors

traceback (most recent call last):   file "f:\python\test\test.py", line 2, in <module> import tesseract   file "c:\python27\lib\site-packages\tesseract.py", line 28, in <module> _tesseract = swig_import_helper()   file "c:\python27\lib\site-packages\tesseract.py", line 24, in swig_import_helper _mod = imp.load_module('_tesseract', fp, pathname, description) importerror: dll load failed: specified module not found. 

i have looked @ stackoverflow questions, not follow of it. tried re-installing it, gave me same errors.

if guide me - helpful.

also, know python-tesseract site says support upto windows-7. unfortunately have setup things on windows-8 machine, , dont want migrate. again error seen on many places - solution highly difficult newbie me follow.


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -