On Nov 25, 11:32 am, "Faisal Shafait" <[EMAIL PROTECTED]> wrote:
> Leptonica is used only for text/image segmentation, that is if there are
> images (half-tones, graphics) in your documents and tesseract outputs a
> large number of garbage characters originating from these images then
> text/image segmentation with leptonica will help you in removing those
> images before feeding the document to tesseract. For normal documents
> containing only text, you don't need leptonica.
I think it is worth following up in *this* thread with my near-
successful compilation thus far.
I followed the instructions by shao.d, patching the four source trees
(iulib, leptonlib, OpenFST, and ocropus), and then running "autoreconf
--install --force" on each of them, and lo and behold, I got past
nearly all my hurdles! (OpenFST finally compiled, and ocropus stopped
complaining about missing leptonica)
Thank you, "shao.d" !
However....
=============== ! the below should probably be moved to a new thread !
=================
However, I am now facing what i hope is my LAST hurdle; it think it is
AMD64-specific. Namely, the " -fPIC " flag(s) issue.
After getting the known AMD64 " recompile with -fPIC " error message
while "make"-ing the ocropus source code, I set my CFLAGS, CXXFLAGS,
and CPPFLAGS env variables to contain "-fPIC" (i *think* -- " env |
grep FLAGS " echoes the above three variables with "-fPIC"), but I got
the error again (with make breaking):
<snip preceding>
r-binarize-range.o .libs/ocr-layout-1cp.o .libs/narray-io.o .libs/xml-
entities.o .libs/ocr-segmentations.o .libs/didegrade.o .libs/seg-
skel.o .libs/lines.o .libs/logger.o .libs/grouper.o .libs/
idmap.o .libs/eigens.o .libs/sysutil.o .libs/ocr-utils.o .libs/
resource-path.o .libs/seg-ccs.o .libs/seg-cuts.o .libs/seg-
eval.o .libs/editdist.o .libs/fstbuilder.o .libs/fstmodels.o .libs/
fstutil.o -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/
lib -lSDL /usr/local/lib/liblept.so /usr/local/lib/libfst.so -lpthread
-liulib -ltiff -ljpeg -lpng -lz -L/usr/lib/gcc/x86_64-redhat-linux/
4.3.0 -L/usr/lib/gcc/x86_64-redhat-linux/4.3.0/../../../../lib64 -L/
lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/
4.3.0/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-redhat-
linux/4.3.0/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/
4.3.0/../../../../lib64/crtn.o -Wl,-soname -Wl,libocropus.so.0 -
o .libs/libocropus.so.0.0.0
/usr/bin/ld: /usr/local/lib/libiulib.a(autoinvert.o): relocation
R_X86_64_32S against `a local symbol' can not be used when making a
shared object; recompile with -fPIC
/usr/local/lib/libiulib.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libocropus.la] Error 1
make[2]: Leaving directory `<src>/svn/ocropus-read-only'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `<src>/svn/ocropus-read-only'
make: *** [all] Error 2
Would anyone be gracious enough to pitch a suggestion to wrestle this
one down? What flags or options am I missing?
thanks again.
> Cheers,
> Faisal
>
> On Tue, Nov 25, 2008 at 4:19 PM, Andrew <[EMAIL PROTECTED]> wrote:
>
> > On Nov 25, 8:28 am, "Thomas Breuel" <[EMAIL PROTECTED]> wrote:
> > > We'll try to come up with a workaround.
>
> > > Generally, Leptonica will likely be dropped as a requirement for OCRopus
> > > when the built-in text/image segmentation catches up with Leptonica; that
> > > will simplify builds and configuration.
>
> > How essential is Leptonica to the accuracy of the recognition quality
> > (or speed?) of this software?
>
> > I currently have a (presumably) working version of ocropus, compiled "
> > --without-fst --without-leptonica ". Should I persist in integrating
> > FST and Leptonica into my build? (I say "presumably" because it
> > currently complains about my tesseract not being trained/configured
> > (with box pairs?))
>
> > Thanks
> > andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ocropus" 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/ocropus?hl=en
-~----------~----~----~----~------~----~------~--~---