On Tue, May 12, 2009 at 04:02, David Marceau <[email protected]>wrote:

>
> ERROR: CHECK ./ocr-commands/ocr-commands.cc:515 line_image.dim(1)*1.0/
> line_image.dim(0)<maxaspect
> Aborted


I have updated the Mercurial repository.

There are a bunch of consistency checks in OCRopus that will trigger
exceptions; this is a part of normal operations.  Normally, these get
ignored, but if the variable abort_on_error=1 is set, then many of those
will actually quit OCRopus.  For debugging, we set that variable to 1 and
that was the default in the repository.  I have changed it to 0.


> Also the python-binding don't compile.
> cd python-binding/
> r...@wind:~/ocropus/python-binding# ls
> ocropus-python.cc  README  setup.py  test.py
> r...@wind:~/ocropus/python-binding# python setup.py build
> Traceback (most recent call last):
>  File "setup.py", line 4, in <module>
>    f = open('../ocroscript/Jamfile')
> IOError: [Errno 2] No such file or directory: '../ocroscript/Jamfile'


I have moved the Python bindings to ocroscript.  However, they probably
won't compile yet, since Mathias is still working on getting ocroscript to
build.

We are also developing new Python bindings based on SWIG that you can pull
down from the ocroswig repository.  They seem to work pretty well

Unfortunately, you can't build OCRopus with the Ubuntu-supplied Tesseract
packages because those are built in a way that makes them incompatible with
dynamic loading (you can't build any Python bindings for Tesseract at all on
Ubuntu as far as I can tell; pytess won't work either).  The package
maintainer is aware of the problem.  For now, if you want to build ocroswig,
you need to manually install Tesseract and modify its build file to contain
-fPIC.

Since SWIG seems to be working pretty well, it looks like we're going to use
that for the Python and Ruby bindings.

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to