Giter VIP home page Giter VIP logo

Comments (5)

tmbdev avatar tmbdev commented on July 29, 2024 1

The types image morphology functions accept in NumPy depend on the platform and version of Python. You could try using a different Python implementation (e.g., Anaconda). Alternatively, you need to track down what is going on with the types and submit a patch (please make sure to do so in a way that doesn't break it on other platforms).

from dup-ocropy.

tonothan avatar tonothan commented on July 29, 2024

I'm also on OSX El Capitan and I'm getting a pretty similar error:

ocropus-gpageseg -n --maxcolseps 0 book/0001.bin.png 
INFO:  
INFO:  ########## /usr/local/bin/ocropus-gpageseg -n --maxcolseps 0 book/0001.
INFO:  
INFO:  book/0001.bin.png
INFO:  scale 18.3303027798
INFO:  computing segmentation
INFO:  computing column separators
INFO:  computing lines
INFO:  propagating labels
Traceback (most recent call last):
  File "/usr/local/bin/ocropus-gpageseg", line 423, in safe_process1
    process1(job)
  File "/usr/local/bin/ocropus-gpageseg", line 379, in process1
    segmentation = compute_segmentation(binary,scale)
  File "/usr/local/bin/ocropus-gpageseg", line 320, in compute_segmentation
    llabels = morph.propagate_labels(boxmap,seeds,conflict=0)
  File "/Library/Python/2.7/site-packages/ocrolib/toplevel.py", line 209, in argument_checks
    raise e
CheckError: 
CheckError for argument labels of function <function propagate_labels at 0x1079f79b0>
<ndarray-7ff34a9ad4c0 (561, 716) uint64 [0,12]> of type <type 'numpy.ndarray'>: expected a segmentation image

Is that the same issue ? Thanks for your help!

Antonia

from dup-ocropy.

zuphilip avatar zuphilip commented on July 29, 2024

It looks for me that the problem here is also a test for integer values, which does not yet know uint64. I try to add fix similar to 9be1ae0 but i cannot test on OS X El Captain.

from dup-ocropy.

zuphilip avatar zuphilip commented on July 29, 2024

@lihan @tonothan Please test whether the PR #285 fixes the issue here for you.

from dup-ocropy.

zuphilip avatar zuphilip commented on July 29, 2024

Should be fixed now.

from dup-ocropy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.