On Sat, Apr 21, 2012 at 1:15 PM, Falke <[email protected]> wrote:

> I think I solved the problem:
>
> The segfaulting happened because I had old and incompatible
> eng.traineddata  (probably forgot to do "make install-langs",
> mentioned in "INSTALL.SVN").   I was clued in when I tried the old "-l
> deu", and, unlike in english, the recognition worked.
>
> However, I must say there's something screwy with TESSDATA_PREFIX  --
> I had trouble switching from "/usr/share" to "/usr/local/share" --
> setting the environment variable doesn't seem to work if the main
> executable is not in "/usr/local" (no big deal -- just that, what
> seems to be fully modular and user-defined is not, in this case)
>
> TESSDATA_PREFIX work for me ;-) You need to give more details...

Maybe problem is in "Compiled in TESSDATA_PREFIX": if you build tesseract
with automake it build-in TESSDATA_PREFIX based on installation path. E.g.
if you compile with prefix=/usr , tesseract will search for language data
in /usr/share/tessdata. If you move your tesseract installation to other
location builtin TESSDATA_PREFIX still points  to /usr/share/tessdata. You
can "overwrite" it only with environment variable TESSDATA_PREFIX... See
[1].

3.02  has configure argument (--disable-tessdata-prefix) that will allow
not to compile in TESSDATA_PREFIX.


>  (Plus it fails to add a slash when appending to TESSDATA_PREFIX  --
> yielding "/usr/local/sharetessdata")
>
>
Issue with appending slash to TESSDATA_PREFIX is IMHO quite known issue
(try to google for "TESSDATA_PREFIX slash" ;-)

[1]
http://code.google.com/p/tesseract-ocr/source/browse/trunk/ccutil/mainblk.cpp?r=677#56
--
Zdenko

-- 
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en

Reply via email to