On Thu, Aug 23, 2012 at 1:33 AM, Tom <[email protected]> wrote:
> I have tagged the released version of OCRopus 0.6. Major changes relative
> to 0.5.x are much simpler installation, fewer dependencies, better
> character recognition rates, and easier training. There is also a number
> of sample scripts illustrating recognition and training.
>
> Thanks to everybody who provided feedback on prereleases.
>
> For documentation and further information, please see the project page:
> www.ocropus.org
>
>
Hi,
I tried it openSUSE 12.1 and Mandriva Linux 2011.0
Installation on openSUSE was fine - without problem.
Installation on Mandriva Linux was with problem:
$ sudo python setup.py install
[sudo] password for zdeno:
No protocol specified
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning:
could not open display
warnings.warn(str(e), _gtk.Warning)
/usr/lib64/python2.7/site-packages/matplotlib/backends/backend_gtk.py:49:
GtkWarning: IA__gdk_cursor_new_for_display: assertion `GDK_IS_DISPLAY
(display)' failed
cursors.MOVE : gdk.Cursor(gdk.FLEUR),
Traceback (most recent call last):
File "setup.py", line 7, in <module>
from ocrolib import default
File "/mnt/vg_u02/download/ocropus/ocropy/ocrolib/__init__.py", line 12,
in <module>
from common import *
File "/mnt/vg_u02/download/ocropus/ocropy/ocrolib/common.py", line 11, in
<module>
import improc
File "/mnt/vg_u02/download/ocropus/ocropy/ocrolib/improc.py", line 8, in
<module>
import sl
File "/mnt/vg_u02/download/ocropus/ocropy/ocrolib/sl.py", line 6, in
<module>
from pylab import mean
File "/usr/lib64/python2.7/site-packages/pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "/usr/lib64/python2.7/site-packages/matplotlib/pylab.py", line 264,
in <module>
from matplotlib.pyplot import *
File "/usr/lib64/python2.7/site-packages/matplotlib/pyplot.py", line 95,
in <module>
new_figure_manager, draw_if_interactive, _show = pylab_setup()
File
"/usr/lib64/python2.7/site-packages/matplotlib/backends/__init__.py", line
25, in pylab_setup
globals(),locals(),[backend_name])
File
"/usr/lib64/python2.7/site-packages/matplotlib/backends/backend_gtkagg.py",
line 10, in <module>
from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK,
FigureCanvasGTK,\
File
"/usr/lib64/python2.7/site-packages/matplotlib/backends/backend_gtk.py",
line 49, in <module>
cursors.MOVE : gdk.Cursor(gdk.FLEUR),
RuntimeError: could not create GdkCursor object
If I got it correctly this is because root (or other user) can not open
(gtk) window under "zdeno" login. Solution is to add following lines[1] to
setup.py before line 'from ocrolib import default':
import matplotlib
matplotlib.use('Agg')
'./run-test' produced this error (openSUSE and Mandriva):
...
File "/usr/local/lib/python2.7/site-packages/ocrolib/morph.py", line 50,
in r_dilation
return filters.maximum_filter(image,size,origin=origin)
NameError: global name 'filters' is not defined
I fixed it by adding "from scipy.ndimage import filters" to
ocrolib/morph.py.
On Mandriva I got fatal error due to missing "omp.h". So I need to
install lib64gomp-devel to fix it (in openSUSE this file is part of gcc46
package).
Then I got another error (on Mandriva):
...
+ ocropus-ngraphs 'temp/????/??????.lattice'
Traceback (most recent call last):
File "./ocropus-ngraphs", line 234, in <module>
args.lmodel = ocrolib.findfile(args.lmodel)
File "/mnt/vg_u02/download/ocropus/ocropy/ocrolib/toplevel.py", line 204,
in argument_checks
result = f(*args,**kw)
File "/mnt/vg_u02/download/ocropus/ocropy/ocrolib/common.py", line 462,
in findfile
raise IOError("file '"+path+"' not found in . or
/usr/local/share/ocropus/")
IOError: file '/usr/local/share/ocropus/en-mixed-4.ngraphs' not found in .
or /usr/local/share/ocropus/
This is strange, because all files are installed into /usr in Mandriva (in
openSUSE it is installed to /usr/local), but ./run-test expect files in
/usr/local... I created symlink as workaround. Then ./run-test works ok on
Mandriva.
I hope this help somebody. And I would suggest to add some kind of
integrity check for downloaded models ;-)
[1]
http://crocea.mednet.ucla.edu/log/python/plot#disable-the-popup-window-in-un-popup-environ
Best regards,
--
Zdenko
--
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 https://groups.google.com/groups/opt_out.