Hi Thomas

I have ocropus 0.4 ( install from the tar file in downloads sections)
installed. I downloaded the latest version of ocroswig and am trying
to run make on it, but it fails with the following error.

/usr/local/include/colib/narray-util.h: In function ‘void
colib::clampscale(colib::narray<T>&, colib::narray<S>&, T, T) [with T
= float, U = float]’:
iulib_wrap.cxx:21719:   instantiated from here
/usr/local/include/colib/narray-util.h:432: error: no matching
function for call to ‘colib::narray<float>::at1d()’
/usr/local/include/colib/narray.h:432: note: candidates are: T&
colib::narray<T>::at1d(int) const [with T = float]
/usr/local/include/colib/narray-util.h: In function ‘void
colib::clampscale(colib::narray<T>&, colib::narray<S>&, T, T) [with T
= int, U = int]’:
iulib_wrap.cxx:21785:   instantiated from here
/usr/local/include/colib/narray-util.h:432: error: no matching
function for call to ‘colib::narray<int>::at1d()’
/usr/local/include/colib/narray.h:432: note: candidates are: T&
colib::narray<T>::at1d(int) const [with T = int]
/usr/local/include/colib/narray-util.h: In function ‘void
colib::clampscale(colib::narray<T>&, colib::narray<S>&, T, T) [with T
= unsigned char, U = unsigned char]’:
iulib_wrap.cxx:21851:   instantiated from here
/usr/local/include/colib/narray-util.h:432: error: no matching
function for call to ‘colib::narray<unsigned char>::at1d()’
/usr/local/include/colib/narray.h:432: note: candidates are: T&
colib::narray<T>::at1d(int) const [with T = unsigned char]
make: *** [_iulib.so] Error 1

I am guessing the interface file is not compatible anymore with that
version. What do you suggest ?

I am new to the SWIG world, but I could help out if you give me some
pointers to get this to work.

thanks
Vidyanand


On May 3, 5:30 am, Thomas Breuel <[email protected]> wrote:
> I put up the very beginnings of SWIG support in a new sub-project at
> mercurial.iupr.org (ocroswig).
>
> If you're brave enough to compile and install the mercurial version of
> OCRopus, you can give it a try.
>
> It actually can already do useful things: you can read/write images, convert
> them to/from Python images or arrays, and you can invoke any of the major
> components of OCRopus from it, including layout analysis and text line
> recognition.  There is no documentation, though.
>
> 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