Whoops! That's from my old install. The latest fails like this:
% ocropus-lattices cleaned.png
# gcc -g -O4 -lm -shared -fopenmp -std=c99 -fPIC .pynative/
73fa8ca7cf53b3733eb77b5f1798ddb2.c -o .pynative/
73fa8ca7cf53b3733eb77b5f1798ddb2.so
Traceback (most recent call last):
File "/usr/local/bin/ocropus-lattices", line 84, in extract
lattice,rseg = linerec.recognizeLineSeg(image)
File "/usr/local/lib/python2.6/dist-packages/ocrolib/segrec.py",
line 273, in recognizeLineSeg
raise RecognitionError("line image too high (maybe
rescale?)",image=image)
NameError: global name 'RecognitionError' is not defined
/usr/local/bin/ocropus-lattices:90 (extract) FATAL internal error
%
What's up here? Clearly segrec doesn't import RecognitionError from
common.
On Nov 7, 6:03 pm, Bill Janssen <[email protected]> wrote:
> Apparently not quite functional yet, though. I just did the above on
> a 10.04 system, and tried running a page through:
>
> % ocropus-pages /tmp/cleaned.png
> /usr/lib/pymodules/python2.6/matplotlib/backends/backend_gtk.py:621:
> DeprecationWarning: Use the new widget gtk.Tooltip
> self.tooltips = gtk.Tooltips()
> Traceback (most recent call last):
> File "/usr/local/bin/ocropus-pages", line 108, in <module>
> preproc = ocrolib.make_IBinarize(options.clean)
> File "/usr/local/lib/python2.6/dist-packages/ocrolib/common.py",
> line 556, in make_IBinarize
> return mkpython(name) or Binarize().make(name)
> NameError: global name 'Binarize' is not defined
> %
>
> On Oct 9, 6:03 am, Tom <[email protected]> wrote:
>
>
>
>
>
>
>
> > The code refactoring is finally nearing an end and the next release is
> > getting closer and closer.
>
> > Part of that is some repository changes. The toplevel "ocropus" repository
> > now is a repository containing subrepositories. You should be able (on a
> > recent Ubuntu system) to type:
>
> > hg clonehttps://code.google.com/p/ocropusocropus
> > cd ocropus
> > sudo sh install-ubuntu-packages
> > sh compile-ocropus
>
> > If you still need access to the old ocropus repository, you can pull
> > fromhttps://code.google.com/p/ocropus.ocroold
>
> > Tom
--
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.