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.