tesseract --list-langs --tessdata-dir /usr/local/share/ Try specifying the directory in the command line.
I have tessdata in two different places and I can list them as follows: User@HP MINGW32 ~/tesseract-ocr $ tesseract --list-langs --tessdata-dir ./ List of available languages (17): ara deu deu_frak eng equ guj hin iast kan mar osd rus san san1 san2 san3 tam User@HP MINGW32 ~/tesseract-ocr $ tesseract --list-langs --tessdata-dir /mingw32/share/ List of available languages (8): ara deu eng heb hin iast osd san ShreeDevi ____________________________________________________________ भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com On Tue, Mar 15, 2016 at 7:05 AM, MiguelArmas <[email protected]> wrote: > Thanks Tom, > > TESSDATA_PREFIX is set to point to tessdata parent: > > [user@server ~]$ echo $TESSDATA_PREFIX > /usr/local/share/ > [user@server ~]$ tesseract --list-langs > fseek(data_file_, static_cast<size_t>(offset_table_[tessdata_type]), > SEEK_SET) == 0:Error:Assert failed:in file ../ccutil/tessdatamanager.h, > line 173 > Segmentation fault > > I haven't been able to find what the problem is and nothing comes when > googling the error on line 173. > That's why I decided to post here and hope someone can help. > > Thanks again, > > Miguel > > > On Monday, 14 March 2016 12:53:41 UTC-4, Tom Morris wrote: >> >> On Monday, March 14, 2016 at 3:25:16 AM UTC-4, MiguelArmas wrote: >>> >>> >>> I'm getting the following error when running tesseract --list-langs >>> >>> fseek(data_file_, static_cast<size_t>(offset_table_[tessdata_type]), >>> SEEK_SET) == 0:Error:Assert failed:in file ../ccutil/tessdatamanager.h, >>> line 173 >>> Segmentation fault >>> >>> I have compiled tesseract 3.04.01 and leptonica 1.73 on Amazon EC2 >>> linux. eng.trainneddata downloaded from >>> https://github.com/tesseract-ocr/tessdata is placed inside tessdata/ >>> >>> Any idea what's wrong? >>> >> >> I'd double check where your TESSDATA_PREFIX points to. It should be the >> *parent* of the tessdata directory. I get a similar symptom if I run >> tesseract --list-langs with the variable set wrong (which is a bug, but one >> that's on a pretty rare path). >> >> Tom >> > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > 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/978f9c2b-b687-4861-a134-5798d3111572%40googlegroups.com > <https://groups.google.com/d/msgid/tesseract-ocr/978f9c2b-b687-4861-a134-5798d3111572%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. 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/CAG2NduXTWv%3DaF5BvXZgVtAq-fAZ_YWqQOaaxMO_cCtAvscOECw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

