Where to find tessdata folder?

2,370 views
Skip to first unread message

Abel Tan

unread,
May 31, 2018, 2:40:32 AM5/31/18
to tesseract-ocr
Hi,

I installed pytesseract by using Anaconda 

conda install -c simonflueckiger tesserocr


The path to Anaconda is :C:\Users\Tan\Anaconda3\

The path to tesseract package is :C:\Users\Tan\Anaconda3\Lib\site-packages\tesserocr

However when I start up Jupyter notebook and run :

import tesserocr


print(tesserocr.image_to_text(image))

I get error:


RuntimeError                              Traceback (most recent call last)
<ipython-input-12-bd27261f0d8c> in <module>()
----> 1 print(tesserocr.image_to_text(imagee))

tesserocr.pyx in tesserocr._tesserocr.image_to_text()

RuntimeError: Failed to init API, possibly an invalid tessdata path: C:\Users\Tan\Anaconda3\



How do I solve this problem?

Thanks
Abel

Zdenko Podobny

unread,
May 31, 2018, 3:23:42 AM5/31/18
to tesser...@googlegroups.com
Did you follow instruction for installation of that package?
Did you try internet search before posting on forum? 
Did you try to search for help in project  tesserocr???

I just put it to google and I got:

Zdenko


št 31. 5. 2018 o 8:40 Abel Tan <abel....@sps.nus.edu.sg> napísal(a):
--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/11c1f35c-943a-4d9e-a045-71b558dab269%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages