>
> The code I am having trouble with at the moment is however from usage iulib
> What I am currently trying to do is to use 
> iublib.binary_open_rect(vert,1,20)
>
>     iulib.binary_open_rect(image4,3,4) # image4,1,) # 20)
>   File "/usr/local/lib/python2.7/dist-packages/iulib.py", line 1961, in 
> binary_open_rect
>     return _iulib.binary_open_rect(*args)
> TypeError: in method 'binary_open_rect', argument 1 of type 'bytearray &'
>

You're trying to call an iulib library function that takes a bytearray as 
its first argument; those bytearrays are the C++ objects defined in iulib. 
You seem to be giving it some other kind of object, maybe a Python array.

iulib isn't really used in OCRopus anymore, although you can still use it 
as a C++/Python library of course. We're mostly using SciPy's ndimage 
library now for image processing. It has some rough edges (in particular in 
the morphology code), but it gets the job done. You might want to consider 
switching to it as well.

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"ocropus" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/ocropus/-/riYPMxQHlwgJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to